From 5f4a35290d5e2a7382dde4d893fc36c44cb0e1fd Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Tue, 23 May 2023 21:08:22 +0300 Subject: util/box: always treat NULL boxes as empty --- include/wlr/util/box.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr') 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 @@ -40,6 +40,11 @@ struct wlr_fbox { double width, height; }; +/** + * 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. * -- cgit v1.2.3