mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 09:16:10 -05:00
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
This commit is contained in:
parent
60170cff70
commit
e5881156f6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user