aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 4e702f5..f17726a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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);
}
}