remove/add instead of raising to put a window into a new layer
This commit is contained in:
parent
794ce0e083
commit
ba76ffaa2b
1 changed files with 5 additions and 2 deletions
|
@ -1504,8 +1504,11 @@ static void calc_recursive(Client *self, Client *orig, StackLayer l,
|
||||||
calc_recursive(it->data, orig, l, raised ? raised : l != old);
|
calc_recursive(it->data, orig, l, raised ? raised : l != old);
|
||||||
|
|
||||||
if (!raised && l != old)
|
if (!raised && l != old)
|
||||||
if (orig->frame) /* only restack if the original window is managed */
|
if (orig->frame) { /* only restack if the original window is managed */
|
||||||
stacking_raise(CLIENT_AS_WINDOW(self));
|
/* XXX add_non_intrusive ever? */
|
||||||
|
stacking_remove(CLIENT_AS_WINDOW(self));
|
||||||
|
stacking_add(CLIENT_AS_WINDOW(self));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void client_calc_layer(Client *self)
|
void client_calc_layer(Client *self)
|
||||||
|
|
Loading…
Reference in a new issue