diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2019-10-11 21:45:06 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-10-11 23:43:13 +0300 |
commit | 480a31ea4e1a3aadbd053ee2a581cad5d4356876 (patch) | |
tree | 851033736851bfab79c3729c58e305c031adb28e /include/wlr/xwayland.h | |
parent | 2bdd1d0896cce69f2ecfbc49f5d28abcc6e302cb (diff) |
wlr_box: properly calculate closest point for non-positive area boxes
If box->width/height is <= 0, the box doesn't contain any points, and so
there is no closest point. wlr_box_closest_point should return NAN in this
case.
In addition, we need to handle empty boxes in a few other
output-layout-related places, because outputs can have size 0x0 when
they are created or destroyed.
Diffstat (limited to 'include/wlr/xwayland.h')
0 files changed, 0 insertions, 0 deletions