From 9f3bd64a332c1bacee57d394bdaf0b4d06153ab0 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 15 Aug 2022 06:14:28 -0400 Subject: util/box: Introduce wlr_box_equal --- util/box.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util') diff --git a/util/box.c b/util/box.c index a9edc144..cddff76e 100644 --- a/util/box.c +++ b/util/box.c @@ -171,3 +171,12 @@ void wlr_fbox_transform(struct wlr_fbox *dest, const struct wlr_fbox *box, break; } } + +#ifdef WLR_USE_UNSTABLE + +bool wlr_box_equal(const struct wlr_box *a, const struct wlr_box *b) { + return a->x == b->x && a->y == b->y && + a->width == b->width && a->height == b->height; +} + +#endif -- cgit v1.2.3