util/box: always treat NULL boxes as empty

This commit is contained in:
Kirill Primak 2023-05-23 21:08:22 +03:00
parent 5d67bbde86
commit 5f4a35290d
2 changed files with 16 additions and 1 deletions

View file

@ -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.
*