diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-16 20:47:59 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-17 11:03:30 -0600 |
commit | 8e3f5364d366fcabc16e142fbb09b0d9c376f3f4 (patch) | |
tree | 842967ae9cf6abdc09e4cb4fd1d9ac91b28ca8d8 | |
parent | 2212363225510d11988f5ddc49bf9454f4455fe6 (diff) |
do not compute layout box twice
-rw-r--r-- | dwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2586,8 +2586,8 @@ updatemons(struct wl_listener *listener, void *data) config_head = wlr_output_configuration_head_v1_create(config, m->wlr_output); /* Get the effective monitor geometry to use for surfaces */ - 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->m); + m->w = m->m; wlr_scene_output_set_position(m->scene_output, m->m.x, m->m.y); wlr_scene_node_set_position(&m->fullscreen_bg->node, m->m.x, m->m.y); |