summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-10-24 16:51:22 +0200
committerGuido Cella <guido@guidocella.xyz>2020-12-19 18:06:38 +0100
commit14ce0162136cd01064ae3bc650d9ffee36291de0 (patch)
treea93ff2c4b64c778c9098f4dacf7c4791fe228f78
parent1e134fde972597e2f10c2bdf40d1356dad5b2cb7 (diff)
Readme: achieve fullscreen + allow borderpx = 0
-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 fd83f92..43010dc 100644
--- a/README.md
+++ b/README.md
@@ -70,7 +70,6 @@ dwl is a work in progress, and it has not yet reached its feature goals in a num
- Urgent/attention/focus-request ([not yet supported](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/9) by xdg-shell protocol)
- Statusbar support (built-in or external)
- Damage tracking
-- Fullscreen/fixed windows (or whatever the Wayland analogues are)
## Acknowledgements
diff --git a/dwl.c b/dwl.c
index 32437b8..4c03717 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1073,6 +1073,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;
@@ -1717,8 +1718,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;