mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Limit layer inheritance to floating windows
This commit is contained in:
parent
4ceced688a
commit
516c9741f2
2 changed files with 4 additions and 1 deletions
1
tree.c
1
tree.c
|
@ -278,7 +278,6 @@ void insert_node(monitor_t *m, desktop_t *d, node_t *n, node_t *f)
|
|||
update_vacant_state(f->parent);
|
||||
}
|
||||
if (f->client != NULL) {
|
||||
n->client->layer = f->client->layer;
|
||||
if (f->client->private) {
|
||||
update_privacy_level(f, true);
|
||||
}
|
||||
|
|
4
window.c
4
window.c
|
@ -150,6 +150,10 @@ void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
|
|||
put_status(SBSC_MASK_WINDOW_MANAGE, "window_manage %s %s 0x%X 0x%X\n", m->name, d->name, f!=NULL?f->client->window:0, win);
|
||||
insert_node(m, d, n, f);
|
||||
|
||||
if (f != NULL && f->client != NULL && csq->floating) {
|
||||
c->layer = f->client->layer;
|
||||
}
|
||||
|
||||
if (csq->layer != NULL) {
|
||||
c->layer = *(csq->layer);
|
||||
free(csq->layer);
|
||||
|
|
Loading…
Add table
Reference in a new issue