From 9bcef3d040790b5f3064e33e149891120055a377 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Thu, 8 Sep 2022 16:35:55 -0500 Subject: resize the fullscreen background when resize the client --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwl.c b/dwl.c index 530ee4e..912a877 100644 --- a/dwl.c +++ b/dwl.c @@ -1780,6 +1780,8 @@ resize(Client *c, struct wlr_box geo, int interact) wlr_scene_node_set_position(&c->border[1]->node, 0, c->geom.height - c->bw); wlr_scene_node_set_position(&c->border[2]->node, 0, c->bw); wlr_scene_node_set_position(&c->border[3]->node, c->geom.width - c->bw, c->bw); + if (c->fullscreen_bg) + wlr_scene_rect_set_size(c->fullscreen_bg, c->geom.width, c->geom.height); /* wlroots makes this a no-op if size hasn't changed */ c->resize = client_set_size(c, c->geom.width - 2 * c->bw, -- cgit v1.2.3