diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2019-04-18 19:21:36 +0200 |
---|---|---|
committer | Carlos Garnacho <mrgarnacho@gmail.com> | 2019-05-31 09:57:24 +0000 |
commit | e5881156f684036225268c1fdc8240639a52a234 (patch) | |
tree | f39e8db0e9dfb20e5e2568b4a21053c303b82c43 | |
parent | 60170cff70292adf9e83aabb6fd08a213d779c50 (diff) | |
download | mutter-e5881156f684036225268c1fdc8240639a52a234.tar.gz |
wayland: Handle NULL cursor renderer finding the outputs of a cursor role
Having a cursor role with a NULL renderer is valid state, and even desirable
on tablets (eg. after proximity out). In those cases it should be
interpreted as the cursor surface not being over any output.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/545
-rw-r--r-- | src/wayland/meta-wayland-cursor-surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-cursor-surface.c b/src/wayland/meta-wayland-cursor-surface.c index d46b3511f..df3e34510 100644 --- a/src/wayland/meta-wayland-cursor-surface.c +++ b/src/wayland/meta-wayland-cursor-surface.c @@ -188,6 +188,9 @@ meta_wayland_cursor_surface_is_on_logical_monitor (MetaWaylandSurfaceRole *role, ClutterPoint point; ClutterRect logical_monitor_rect; + if (!priv->cursor_renderer) + return FALSE; + logical_monitor_rect = meta_rectangle_to_clutter_rect (&logical_monitor->rect); |