]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
check for the composite library
[chaz/openbox] / openbox / screen.c
index 720fc049c423bfcb4ce104b4e21070ea7adb4fca..f9b1eb6c643da0489eb01ff139b8e794db1335ca 100644 (file)
@@ -526,8 +526,9 @@ void screen_set_num_desktops(guint num)
                 client_set_desktop(c, num - 1, FALSE, TRUE);
             /* raise all the windows that are on the current desktop which
                is being merged */
-            else if (c->desktop == DESKTOP_ALL ||
-                     c->desktop == num - 1)
+            else if (screen_desktop == num - 1 &&
+                     (c->desktop == DESKTOP_ALL ||
+                      c->desktop == screen_desktop))
                 stacking_raise(WINDOW_AS_CLIENT(c));
         }
     }
This page took 0.025656 seconds and 4 git commands to generate.