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
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

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