mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
arrange monitor after updating fullscreen background and lock surfaces
This commit is contained in:
parent
71c7e4e1e5
commit
56114f700f
1 changed files with 5 additions and 4 deletions
9
dwl.c
9
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->m));
|
||||||
wlr_output_layout_get_box(output_layout, m->wlr_output, &(m->w));
|
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);
|
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_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);
|
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);
|
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.enabled = 1;
|
||||||
config_head->state.mode = m->wlr_output->current_mode;
|
config_head->state.mode = m->wlr_output->current_mode;
|
||||||
config_head->state.x = m->m.x;
|
config_head->state.x = m->m.x;
|
||||||
|
|
Loading…
Reference in a new issue