From 14ce0162136cd01064ae3bc650d9ffee36291de0 Mon Sep 17 00:00:00 2001 From: Stivvo Date: Sat, 24 Oct 2020 16:51:22 +0200 Subject: Readme: achieve fullscreen + allow borderpx = 0 --- dwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dwl.c') 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; -- cgit v1.2.3