mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
use (struct wlr_box){0} to empty the Monitor areas
This commit is contained in:
parent
bdbfb45d66
commit
e5e2d1c28f
1 changed files with 1 additions and 2 deletions
3
dwl.c
3
dwl.c
|
@ -2554,8 +2554,7 @@ updatemons(struct wl_listener *listener, void *data)
|
||||||
/* Remove this output from the layout to avoid cursor enter inside it */
|
/* Remove this output from the layout to avoid cursor enter inside it */
|
||||||
wlr_output_layout_remove(output_layout, m->wlr_output);
|
wlr_output_layout_remove(output_layout, m->wlr_output);
|
||||||
closemon(m);
|
closemon(m);
|
||||||
memset(&m->m, 0, sizeof(m->m));
|
m->m = m->w = (struct wlr_box){0};
|
||||||
memset(&m->w, 0, sizeof(m->w));
|
|
||||||
}
|
}
|
||||||
/* Insert outputs that need to */
|
/* Insert outputs that need to */
|
||||||
wl_list_for_each(m, &mons, link)
|
wl_list_for_each(m, &mons, link)
|
||||||
|
|
Loading…
Reference in a new issue