aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-30 14:26:53 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-30 14:26:53 -0600
commit56114f700ffabc7f0f69a0f98053cfb629e0d521 (patch)
treee135a6fb41da0c1b5b214ec9695b890ba78c2984
parent71c7e4e1e5d2181d58fba3ce14a4457885523452 (diff)
arrange monitor after updating fullscreen background and lock surfaces
-rw-r--r--dwl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index f80219d..e4ad8cf 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2476,10 +2476,6 @@ updatemons(struct wl_listener *listener, void *data)
wlr_output_layout_get_box(output_layout, m->wlr_output, &(m->m));
wlr_output_layout_get_box(output_layout, m->wlr_output, &(m->w));
wlr_scene_output_set_position(m->scene_output, m->m.x, m->m.y);
- /* Calculate the effective monitor geometry to use for clients */
- arrangelayers(m);
- /* Don't move clients to the left output when plugging monitors */
- arrange(m);
wlr_scene_node_set_position(&m->fullscreen_bg->node, m->m.x, m->m.y);
wlr_scene_rect_set_size(m->fullscreen_bg, m->m.width, m->m.height);
@@ -2491,6 +2487,11 @@ updatemons(struct wl_listener *listener, void *data)
m->m.height);
}
+ /* Calculate the effective monitor geometry to use for clients */
+ arrangelayers(m);
+ /* Don't move clients to the left output when plugging monitors */
+ arrange(m);
+
config_head->state.enabled = 1;
config_head->state.mode = m->wlr_output->current_mode;
config_head->state.x = m->m.x;