[x11] update_wm_hints after unsetting WITHDRAWN
authorXu Li <xu.li@intel.com>
Mon, 13 Jul 2009 08:06:13 +0000 (16:06 +0800)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 13 Jul 2009 14:33:21 +0000 (15:33 +0100)
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>
clutter/x11/clutter-stage-x11.c

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