]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
drop the startup notify timeout from 30 to 20 seconds
[chaz/openbox] / openbox / screen.c
index 08b2d74036dc663f625d3b77be2eb2f8004df586..f424ca041c13480c076eea71840da70878bb3649 100644 (file)
@@ -508,10 +508,11 @@ void screen_set_desktop(guint num, gboolean dofocus)
      
     g_assert(num < screen_num_desktops);
 
-    if (old == num) return;
-
     old = screen_desktop;
     screen_desktop = num;
+
+    if (old == num) return;
+
     PROP_SET32(RootWindow(ob_display, ob_screen),
                net_current_desktop, cardinal, num);
 
@@ -532,7 +533,8 @@ void screen_set_desktop(guint num, gboolean dofocus)
         }
     }
 
-    if (focus_client && (focus_client->desktop == DESKTOP_ALL ||
+    if (focus_client && ((client_normal(focus_client) &&
+                          focus_client->desktop == DESKTOP_ALL) ||
                          focus_client->desktop == screen_desktop))
         dofocus = FALSE;
 
This page took 0.023235 seconds and 4 git commands to generate.