summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--dwl.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/README.md b/README.md
index 3251ccf..1439a0b 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,6 @@ dwl is a work in progress, and it has not yet reached its feature goals in a num
- Statusbar support (built-in or external)
- layer-shell
- Damage tracking
-- Fullscreen/fixed windows (or whatever the Wayland analogues are)
## Acknowledgements
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;