[mutter/wip/carlosg/tablet-cursor-surface-events: 168/169] wayland: Handle NULL cursor renderer finding the outputs of a cursor role
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/tablet-cursor-surface-events: 168/169] wayland: Handle NULL cursor renderer finding the outputs of a cursor role
- Date: Fri, 31 May 2019 09:57:41 +0000 (UTC)
commit e5881156f684036225268c1fdc8240639a52a234
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Apr 18 19:21:36 2019 +0200
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
src/wayland/meta-wayland-cursor-surface.c | 3 +++
1 file changed, 3 insertions(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]