From 1d08ef234e6fcb6cdd2ca128f0259497aaaaddf8 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 15 Aug 2022 06:04:42 -0400 Subject: util/box: Introduce wlr_fbox_equal --- util/box.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util') diff --git a/util/box.c b/util/box.c index cddff76e..d7d22617 100644 --- a/util/box.c +++ b/util/box.c @@ -179,4 +179,9 @@ bool wlr_box_equal(const struct wlr_box *a, const struct wlr_box *b) { a->width == b->width && a->height == b->height; } +bool wlr_fbox_equal(const struct wlr_fbox *a, const struct wlr_fbox *b) { + return a->x == b->x && a->y == b->y && + a->width == b->width && a->height == b->height; +} + #endif -- cgit v1.2.3