wayland: Use cursor position in logical monitor
authorOlivier Fourdan <ofourdan@redhat.com>
Fri, 23 Mar 2018 12:05:12 +0000 (13:05 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 20 May 2018 14:21:35 +0000 (15:21 +0100)
commitae8b0c409893e06ea6a023ca3a0744224a455a72
tree1f81b04d49164f945a661c5ea35e1f9ab54040cd
parentb720f14c19a68bb86411d590670a808515fbb096
wayland: Use cursor position in logical monitor

When using two monitors size by side with different scales, once the
cursor moves from one output to another one, its size changes based on
the scale of the given output.

Changing the size of the cursor can cause the cursor area to change
output again if the hotspot is not exactly at the top left corner of the
area, causing the texture of the cursor to change, which will trigger
another output change, so on and so forth causing continuous surface
enter/leave event which flood the clients and eventually kill them.

Change the logic to use only the actual cursor position to determine if
its on the given logical monitor, so that it remains immune to scale
changes induced by output scale differences.

(cherry picked from commit 67917db45f96befb777e5f331a775ea3c2b53012)

Bug: https://gitlab.gnome.org/GNOME/mutter/issues/83
Origin: upstream, 3.28.3, commit:7d52be02290bd92589fbea756ca3431af8e71a94

Gbp-Pq: Name wayland-Use-cursor-position-in-logical-monitor.patch
src/backends/meta-cursor-renderer.c
src/backends/meta-cursor-renderer.h
src/wayland/meta-wayland-surface-role-cursor.c