aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-10-24 16:51:22 +0200
committerStivvo <stivvo01@gmail.com>2020-10-24 16:51:22 +0200
commitfcc869ed8480c21cd8b36d9fc3bd8dd3b8cee981 (patch)
tree7cc1990fd205621646d7b0b3530abf518489fdfb /dwl.c
parentc98686cf1618da2e581f46d4723016365606b591 (diff)
Readme: achieve fullscreen + allow borderpx = 0
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 05739a8..1a26ab6 100644
--- a/dwl.c
+++ b/dwl.c
@@ -700,6 +700,7 @@ setfullscreen(Client *c, int fullscreen)
#endif
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, fullscreen);
+ // restore previous size instead of arrange to work with floating windows
if (fullscreen) {
c->prevx = c->geom.x;
c->prevy = c->geom.y;
@@ -1240,8 +1241,7 @@ renderclients(Monitor *m, struct timespec *now)
ox = c->geom.x, oy = c->geom.y;
wlr_output_layout_output_coords(output_layout, m->wlr_output,
&ox, &oy);
-
- if (c->isfullscreen)
+ if (c->bw == 0)
goto render;
w = surface->current.width;