]> Dogcows Code - chaz/openbox/commitdiff
show the desktop change popup before mapping/unmapping all the windows
authorDana Jansens <danakj@orodu.net>
Tue, 26 Feb 2008 03:16:58 +0000 (22:16 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 26 Feb 2008 03:16:58 +0000 (22:16 -0500)
this makes a big difference if the compmgr is being laggy trying to show windows

openbox/screen.c

index 730b4c241b6ba8fd46b88e8b992723f7a48a2172..346b50c3a60fcdba9585dea4e763d9760269f68a 100644 (file)
@@ -688,6 +688,9 @@ void screen_set_desktop(guint num, gboolean dofocus)
 
     ob_debug("Moving to desktop %d\n", num+1);
 
+    if (ob_state() == OB_STATE_RUNNING)
+        screen_show_desktop_popup(screen_desktop);
+
     /* ignore enter events caused by the move */
     ignore_start = event_start_ignore_all_enters();
 
@@ -718,9 +721,6 @@ void screen_set_desktop(guint num, gboolean dofocus)
 
     if (event_curtime != CurrentTime)
         screen_desktop_user_time = event_curtime;
-
-    if (ob_state() == OB_STATE_RUNNING)
-        screen_show_desktop_popup(screen_desktop);
 }
 
 void screen_add_desktop(gboolean current)
This page took 0.024493 seconds and 4 git commands to generate.