]> Dogcows Code - chaz/openbox/commitdiff
remove/add instead of raising to put a window into a new layer
authorDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 07:07:42 +0000 (07:07 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 07:07:42 +0000 (07:07 +0000)
openbox/client.c

index 20bcf06766f0cd6f3b96d704d7c5887d764f59a9..9d19cfa56135206765f781ef174cf88f62fb5009 100644 (file)
@@ -1504,8 +1504,11 @@ static void calc_recursive(Client *self, Client *orig, StackLayer l,
         calc_recursive(it->data, orig, l, raised ? raised : l != old);
 
     if (!raised && l != old)
-       if (orig->frame) /* only restack if the original window is managed */
-           stacking_raise(CLIENT_AS_WINDOW(self));
+       if (orig->frame) { /* only restack if the original window is managed */
+            /* XXX add_non_intrusive ever? */
+            stacking_remove(CLIENT_AS_WINDOW(self));
+            stacking_add(CLIENT_AS_WINDOW(self));
+        }
 }
 
 void client_calc_layer(Client *self)
This page took 0.03047 seconds and 4 git commands to generate.