use wlr_box_equal() instead of memcmp
This commit is contained in:
parent
a353eee2ca
commit
39f4ee564b
2
dwl.c
2
dwl.c
|
@ -504,7 +504,7 @@ arrangelayers(Monitor *m)
|
||||||
for (i = 3; i >= 0; i--)
|
for (i = 3; i >= 0; i--)
|
||||||
arrangelayer(m, &m->layers[i], &usable_area, 1);
|
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;
|
m->w = usable_area;
|
||||||
arrange(m);
|
arrange(m);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue