diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-08-15 06:14:28 -0400 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-08-15 06:14:28 -0400 |
commit | 9f3bd64a332c1bacee57d394bdaf0b4d06153ab0 (patch) | |
tree | f88eec9f09a35fd1da0b45808b19dd4a15ac76c4 /util/box.c | |
parent | 59675347e6c1ac86ec750ea69cddaf0c873f6437 (diff) |
util/box: Introduce wlr_box_equal
Diffstat (limited to 'util/box.c')
-rw-r--r-- | util/box.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |