macos: improve monitor detection at display coordinates
authorChristian Hergert <christian@hergert.me>
Tue, 15 Feb 2022 20:11:36 +0000 (12:11 -0800)
committerChristian Hergert <christian@hergert.me>
Tue, 15 Feb 2022 20:38:07 +0000 (12:38 -0800)
commit056e9012d2d01c04899dcb8cd4c14b1933a0b2c8
treeaab7eb66bb1ff85890f71cda81bb4118857a6caa
parent3e913ff16e47d6076d97af34e51d2e06b68eff75
macos: improve monitor detection at display coordinates

This needs to handle the boundary case where the value is exactly equal
to the edge of a rectangle (which gdk_rectangle_contains_point() does not
consider to be containing). However, if there is a monitor in the list
that is a better match, we still want to prefer it.
gdk/macos/gdkmacosdisplay.c