diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-26 07:07:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-26 07:07:42 +0000 |
| commit | ba76ffaa2bdc465aeed9ae2454132428fc20ba26 (patch) | |
| tree | 10bb249a394272b11e96a2583dbef8c3c8fae74f /openbox | |
| parent | 794ce0e083c1eaf04a1f499bb99226894c3ee406 (diff) | |
remove/add instead of raising to put a window into a new layer
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 7 |
1 files changed, 5 insertions, 2 deletions
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) |
