diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-12-07 22:04:24 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-12-07 22:04:24 -0600 |
commit | e5e2d1c28f816c3f9188ebca77ecf3abcdd89acc (patch) | |
tree | 121b06f18e61b42aac5ee929952872f3fee3a93d | |
parent | bdbfb45d6687c69a83f2387b278e2ca97ef61a36 (diff) |
use (struct wlr_box){0} to empty the Monitor areas
-rw-r--r-- | dwl.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2554,8 +2554,7 @@ updatemons(struct wl_listener *listener, void *data) /* Remove this output from the layout to avoid cursor enter inside it */ wlr_output_layout_remove(output_layout, m->wlr_output); closemon(m); - memset(&m->m, 0, sizeof(m->m)); - memset(&m->w, 0, sizeof(m->w)); + m->m = m->w = (struct wlr_box){0}; } /* Insert outputs that need to */ wl_list_for_each(m, &mons, link) |