X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=f9b1eb6c643da0489eb01ff139b8e794db1335ca;hb=d945813e0856bdd8b06c1cc6d00e4cf33c9ee4cd;hp=720fc049c423bfcb4ce104b4e21070ea7adb4fca;hpb=de2ba8f28b85422e645c94cfdf5791cce3321264;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index 720fc049..f9b1eb6c 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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)); } }