From: Dana Jansens Date: Tue, 22 Dec 2009 16:36:08 +0000 (-0500) Subject: stacking raises things only in the same layer X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=5f52229839007548d4a76308d7cbbc507d56ed0b;p=dana%2Fopenbox.git stacking raises things only in the same layer --- diff --git a/openbox/focus.c b/openbox/focus.c index a75c170f..94af9846 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -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);