]> Dogcows Code - chaz/openbox/commitdiff
only auto-activate normal windows when they raise themselves (not splash screens...
authorDana Jansens <danakj@orodu.net>
Sat, 26 May 2007 03:08:07 +0000 (03:08 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 26 May 2007 03:08:07 +0000 (03:08 +0000)
openbox/stacking.c

index 0fb19521607f240b63f6d8394d60fd339d02b7b1..ce3befcaf6b04db25aa47a0eee1dd39f5cc8b72c 100644 (file)
@@ -567,7 +567,7 @@ void stacking_restack_request(ObClient *client, ObClient *sibling,
     case Above:
         ob_debug("Restack request Above for client %s sibling %s\n",
                  client->title, sibling ? sibling->title : "(all)");
-        if (activate && !client->iconic)
+        if (activate && !client->iconic && client_normal(client))
             /* use user=TRUE because it is impossible to get a timestamp
                for this */
             client_activate(client, FALSE, TRUE);
@@ -578,7 +578,7 @@ void stacking_restack_request(ObClient *client, ObClient *sibling,
         ob_debug("Restack request TopIf for client %s sibling %s\n",
                  client->title, sibling ? sibling->title : "(all)");
         if (stacking_occluded(client, sibling)) {
-            if (activate && !client->iconic)
+            if (activate && !client->iconic && client_normal(client))
                 /* use user=TRUE because it is impossible to get a timestamp
                    for this */
                 client_activate(client, FALSE, TRUE);
@@ -591,7 +591,7 @@ void stacking_restack_request(ObClient *client, ObClient *sibling,
                  "%s\n",
                  client->title, sibling ? sibling->title : "(all)");
         if (stacking_occluded(client, sibling)) {
-            if (activate && !client->iconic)
+            if (activate && !client->iconic && client_normal(client))
                 /* use user=TRUE because it is impossible to get a timestamp
                    for this */
                 client_activate(client, FALSE, TRUE);
This page took 0.026562 seconds and 4 git commands to generate.