From 5f52229839007548d4a76308d7cbbc507d56ed0b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 22 Dec 2009 11:36:08 -0500 Subject: [PATCH] stacking raises things only in the same layer --- openbox/focus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.34.1