summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-13 17:11:52 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-13 17:11:52 -0600
commitebff6e38a02086bd6078a444641a83cb226f9995 (patch)
tree85f684c7e029df13362be19ef4831c8cb1c1cc66
parent2cd0b3173d2ba7078347a8172b497d12fa592549 (diff)
always call arrange() on setfullscreen()
also don't count full screen clients on tile()
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 1388acb..20e7c5c 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1034,8 +1034,8 @@ setfullscreen(Client *c, int fullscreen)
/* restore previous size instead of arrange for floating windows since
* client positions are set by the user and cannot be recalculated */
resize(c, c->prev.x, c->prev.y, c->prev.width, c->prev.height, 0);
- arrange(c->mon);
}
+ arrange(c->mon);
printstatus();
}
@@ -2193,7 +2193,7 @@ tile(Monitor *m)
Client *c;
wl_list_for_each(c, &clients, link)
- if (VISIBLEON(c, m) && !c->isfloating)
+ if (VISIBLEON(c, m) && !c->isfloating && !c->isfullscreen)
n++;
if (n == 0)
return;