Limit layer inheritance to floating windows

This commit is contained in:
Bastien Dejean 2015-11-01 17:43:44 +01:00
parent 4ceced688a
commit 516c9741f2
2 changed files with 4 additions and 1 deletions

1
tree.c
View file

@ -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);
}

View file

@ -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);