From 39f4ee564b153966b0219004293d16900d2356d1 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Sat, 25 Nov 2023 12:35:38 -0600 Subject: use wlr_box_equal() instead of memcmp --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 8500f2b..b589378 100644 --- a/dwl.c +++ b/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); } -- cgit v1.2.3