stacking raises things only in the same layer
authorDana Jansens <danakj@orodu.net>
Tue, 22 Dec 2009 16:36:08 +0000 (11:36 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 22 Dec 2009 16:44:53 +0000 (11:44 -0500)
openbox/focus.c

index a75c170f649e72bf62c07456e603742e976e1229..94af9846947c655ee28be16198662f77fab6cdff 100644 (file)
@@ -62,7 +62,8 @@ static void push_to_top(ObClient *client)
     /* if it is modal for a single window, then put that window at the top
        of the focus order first, so it will be right after ours. the same is
        done with stacking */
-    if (client->modal && (p = client_direct_parent(client)))
+    if (client->modal && (p = client_direct_parent(client)) &&
+        p->layer == client->layer)
         push_to_top(p);
 
     focus_order = g_list_remove(focus_order, client);