]> Dogcows Code - chaz/openbox/commitdiff
only restack group windows on the same desktop
authorDana Jansens <danakj@orodu.net>
Fri, 10 Oct 2003 03:45:01 +0000 (03:45 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 10 Oct 2003 03:45:01 +0000 (03:45 +0000)
openbox/stacking.c

index 2a57e1a3bab546eaabe4f6eb87bc45e8ecab01ea..287de4f0658ed01cf62ccb844cf15c21a529ab5c 100644 (file)
@@ -245,15 +245,18 @@ static GList *pick_group_windows(ObClient *top, ObClient *selected,
             next = g_list_next(it);
 
             if ((sit = g_slist_find(top->group->members, it->data))) {
+                ObClient *c;
                 ObClientType t;
 
                 ++i;
-
-                t = ((ObClient*)it->data)->type;
-
-                if (t == OB_CLIENT_TYPE_TOOLBAR ||
-                    t == OB_CLIENT_TYPE_MENU ||
-                    t == OB_CLIENT_TYPE_UTILITY)
+                c = it->data;
+                t = c->type;
+
+                if ((c->desktop == selected->desktop ||
+                     c->desktop == DESKTOP_ALL) &&
+                    (t == OB_CLIENT_TYPE_TOOLBAR ||
+                     t == OB_CLIENT_TYPE_MENU ||
+                     t == OB_CLIENT_TYPE_UTILITY))
                 {
                     ret = g_list_concat(ret,
                                         pick_windows(sit->data,
This page took 0.022142 seconds and 4 git commands to generate.