Skip to content

Commit

Permalink
do not compute layout box twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sevz17 committed Nov 17, 2023
1 parent 2212363 commit 8e3f536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e3f536

Please sign in to comment.