use wlr_box_equal() instead of memcmp

This commit is contained in:
Leonardo Hernández Hernández 2023-11-25 12:35:38 -06:00
parent a353eee2ca
commit 39f4ee564b
Failed to generate hash of commit

2
dwl.c
View file

@ -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);
} }