]> Dogcows Code - chaz/openbox/commitdiff
i broke desktop switching
authorDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 21:40:24 +0000 (21:40 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 May 2007 21:40:24 +0000 (21:40 +0000)
openbox/screen.c

index 08b2d74036dc663f625d3b77be2eb2f8004df586..b7cb41c85d8722a040f396598d19fc59bf69f9d4 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);
 
This page took 0.027244 seconds and 4 git commands to generate.