From: Dana Jansens Date: Thu, 26 Jun 2003 07:07:42 +0000 (+0000) Subject: remove/add instead of raising to put a window into a new layer X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ba76ffaa2bdc465aeed9ae2454132428fc20ba26;p=chaz%2Fopenbox remove/add instead of raising to put a window into a new layer --- diff --git a/openbox/client.c b/openbox/client.c index 20bcf067..9d19cfa5 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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)