diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-05-23 21:02:18 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-05-23 21:02:18 +0300 |
commit | 5d67bbde861b0fa47d231ee1f0741317c4de5519 (patch) | |
tree | 011b8a823531dbc246b7722562d7c52274e3e2b2 | |
parent | d495fb8c046751cfeb06af2227d413dc3dbc9bf0 (diff) |
util/box: simplify empty box case in wlr_box_intersection()
-rw-r--r-- | util/box.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -43,10 +43,7 @@ bool wlr_box_intersection(struct wlr_box *dest, const struct wlr_box *box_a, bool b_empty = wlr_box_empty(box_b); if (a_empty || b_empty) { - dest->x = 0; - dest->y = 0; - dest->width = -100; - dest->height = -100; + *dest = (struct wlr_box){0}; return false; } |