From 72d29f165449a28f84e476803543f30f11e366e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Fri, 30 Dec 2022 14:21:46 -0600 Subject: add blank lines to make updatemons() more readable --- dwl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 7ae2032..a0b2ca8 100644 --- a/dwl.c +++ b/dwl.c @@ -2459,9 +2459,12 @@ updatemons(struct wl_listener *listener, void *data) if (m->wlr_output->enabled && !wlr_output_layout_get(output_layout, m->wlr_output)) wlr_output_layout_add_auto(output_layout, m->wlr_output); + /* Now that we update the output layout we can get its box */ wlr_output_layout_get_box(output_layout, NULL, &sgeom); + wlr_scene_rect_set_size(locked_bg, sgeom.width, sgeom.height); + wl_list_for_each(m, &mons, link) { if (!m->wlr_output->enabled) continue; -- cgit v1.2.3