summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-25 12:35:38 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-25 19:08:56 -0600
commit39f4ee564b153966b0219004293d16900d2356d1 (patch)
tree0467219bf75c4f652fd85f66dcc49902ddce3a99
parenta353eee2cac0378a4201e408a3417aa107a7f647 (diff)
use wlr_box_equal() instead of memcmp
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
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);
}