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