]> Dogcows Code - chaz/openbox/commitdiff
dont die if a non-visible window is raised/lowered
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 07:50:35 +0000 (07:50 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 07:50:35 +0000 (07:50 +0000)
openbox/stacking.c

index 72b7c03ba51856cf9b123326b38f429ffc1692aa..f38d4a0b5561218ef12d7eb88b42b73b1bc8b512 100644 (file)
@@ -73,7 +73,8 @@ void stacking_raise(Client *client)
 
     stacking_list = g_list_insert_before(stacking_list, it, client);
 
-    XRestackWindows(ob_display, wins, 2);
+    if (client->frame.visible)
+        XRestackWindows(ob_display, wins, 2);
 
     stacking_set_list();
 }
@@ -116,7 +117,8 @@ void stacking_lower(Client *client)
                                             it->next, client);
     }
 
-    XRestackWindows(ob_display, wins, 2);
+    if (client->frame.visible)
+        XRestackWindows(ob_display, wins, 2);
     stacking_set_list();
 }
 
This page took 0.02439 seconds and 4 git commands to generate.