Skip to content

Commit

Permalink
add blank lines to make updatemons() more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
sevz17 committed Dec 30, 2022
1 parent e523c2b commit 72d29f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72d29f1

Please sign in to comment.