Commit ecf579b8 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Ignore the initial WM_STATE transition out of withdrawn state.

parent 3cb23d34
...@@ -911,16 +911,21 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent ...@@ -911,16 +911,21 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent
switch(event->state) switch(event->state)
{ {
case PropertyDelete: case PropertyDelete:
TRACE( "%p/%lx: WM_STATE deleted from %d\n", data->hwnd, data->whole_window, data->wm_state );
data->wm_state = WithdrawnState; data->wm_state = WithdrawnState;
TRACE( "%p/%lx: WM_STATE deleted\n", data->hwnd, data->whole_window );
break; break;
case PropertyNewValue: case PropertyNewValue:
{ {
int old_state = data->wm_state;
int new_state = get_window_wm_state( event->display, data ); int new_state = get_window_wm_state( event->display, data );
if (new_state != -1 && new_state != data->wm_state) if (new_state != -1 && new_state != data->wm_state)
{ {
TRACE( "%p/%lx: new WM_STATE %d\n", data->hwnd, data->whole_window, new_state ); TRACE( "%p/%lx: new WM_STATE %d from %d\n",
data->hwnd, data->whole_window, new_state, old_state );
data->wm_state = new_state; data->wm_state = new_state;
/* ignore the initial state transition out of withdrawn state */
/* metacity does Withdrawn->NormalState->IconicState when mapping an iconic window */
if (!old_state) return;
} }
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment