use wlr_box_equal() instead of memcmp
This commit is contained in:
parent
a353eee2ca
commit
39f4ee564b
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -504,7 +504,7 @@ arrangelayers(Monitor *m)
|
|||
for (i = 3; i >= 0; i--)
|
||||
arrangelayer(m, &m->layers[i], &usable_area, 1);
|
||||
|
||||
if (memcmp(&usable_area, &m->w, sizeof(struct wlr_box))) {
|
||||
if (!wlr_box_equal(&usable_area, &m->w)) {
|
||||
m->w = usable_area;
|
||||
arrange(m);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue