diff options
-rw-r--r-- | dwl.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1416,7 +1416,7 @@ swallow(Client *c, Client *w) { c->bw = w->bw; c->isfloating = w->isfloating; c->isurgent = w->isurgent; - c->isfullscreen = w->isfullscreen; + c->isfullscreen |= w->isfullscreen; c->tags = w->tags; resize(c, w->geom, 0); wl_list_insert(&w->link, &c->link); @@ -1681,7 +1681,8 @@ mapnotify(struct wl_listener *listener, void *data) swallow(c,p); wl_list_remove(&p->link); wl_list_remove(&p->flink); - setfullscreen(c, p->isfullscreen); + if (c->isfullscreen) + setfullscreen(c, c->isfullscreen); } } |