Skip to content

box: fix wlr_box_intersection

Simon Ser requested to merge github/fork/emersion/fix-box-intersection into master

x2 and y2 were computed as inclusive bounds, and then the size was computed with a subtraction on inclusive bounds. To compute a size you need to do a subtraction between an inclusive bound and an exclusive bound. This PR changes x2 and y2 to be exclusive bounds instead.

Fixes https://github.com/swaywm/wlroots/issues/1042

Merge request reports