aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/util
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-05-23 21:08:22 +0300
committerKirill Primak <vyivel@eclair.cafe>2023-05-23 21:08:22 +0300
commit5f4a35290d5e2a7382dde4d893fc36c44cb0e1fd (patch)
treeff2c2db6e6360d60bfb08bdc27043f8abaf899fe /include/wlr/util
parent5d67bbde861b0fa47d231ee1f0741317c4de5519 (diff)
util/box: always treat NULL boxes as empty
Diffstat (limited to 'include/wlr/util')
-rw-r--r--include/wlr/util/box.h5
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.