diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-05-23 21:08:22 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-05-23 21:08:22 +0300 |
commit | 5f4a35290d5e2a7382dde4d893fc36c44cb0e1fd (patch) | |
tree | ff2c2db6e6360d60bfb08bdc27043f8abaf899fe /include | |
parent | 5d67bbde861b0fa47d231ee1f0741317c4de5519 (diff) |
util/box: always treat NULL boxes as empty
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/util/box.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/util/box.h b/include/wlr/util/box.h index 84df50a6..e866b1df 100644 --- a/include/wlr/util/box.h +++ b/include/wlr/util/box.h @@ -41,6 +41,11 @@ struct wlr_fbox { }; /** + * Functions below accept NULL where a box is expected, which is treated + * the same as an empty box. + */ + +/** * Finds the closest point within the box bounds. * * Returns NAN if the box is empty. |