[x11] update_wm_hints after unsetting WITHDRAWN

Updating the WM hints on the stage window shortcircuits if the stage
is in WITHDRAWN state, so we need to move the update_wm_hints() call
after the flag has been unset.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Xu Li 2009-07-13 16:06:13 +08:00 committed by Emmanuele Bassi
parent 07453a5861
commit 13f31d8319

View File

@ -577,14 +577,14 @@ clutter_stage_x11_show (ClutterStageWindow *stage_window,
stage_x11->xwin_height); stage_x11->xwin_height);
} }
update_wm_hints (stage_x11);
if (stage_x11->fullscreen_on_map) if (stage_x11->fullscreen_on_map)
clutter_stage_x11_set_fullscreen (stage_window, TRUE); clutter_stage_x11_set_fullscreen (stage_window, TRUE);
else else
clutter_stage_x11_set_fullscreen (stage_window, FALSE); clutter_stage_x11_set_fullscreen (stage_window, FALSE);
set_stage_state (stage_x11, STAGE_X11_WITHDRAWN, 0); set_stage_state (stage_x11, STAGE_X11_WITHDRAWN, 0);
update_wm_hints (stage_x11);
} }
g_assert (STAGE_X11_IS_MAPPED (stage_x11)); g_assert (STAGE_X11_IS_MAPPED (stage_x11));