aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/interfaces/meson.build
diff options
context:
space:
mode:
authorIlia Bozhinov <ammen99@gmail.com>2019-10-11 21:45:06 +0200
committerSimon Ser <contact@emersion.fr>2019-10-11 23:43:13 +0300
commit480a31ea4e1a3aadbd053ee2a581cad5d4356876 (patch)
tree851033736851bfab79c3729c58e305c031adb28e /include/wlr/interfaces/meson.build
parent2bdd1d0896cce69f2ecfbc49f5d28abcc6e302cb (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/interfaces/meson.build')
0 files changed, 0 insertions, 0 deletions