diff options
Diffstat (limited to 'src/wayland/meta-wayland-surface-role-cursor.c')
-rw-r--r-- | src/wayland/meta-wayland-surface-role-cursor.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wayland/meta-wayland-surface-role-cursor.c b/src/wayland/meta-wayland-surface-role-cursor.c index 1c8ba94e5..d118a8917 100644 --- a/src/wayland/meta-wayland-surface-role-cursor.c +++ b/src/wayland/meta-wayland-surface-role-cursor.c @@ -195,14 +195,15 @@ cursor_surface_role_is_on_logical_monitor (MetaWaylandSurfaceRole *role, META_WAYLAND_SURFACE_ROLE_CURSOR (surface->role); MetaWaylandSurfaceRoleCursorPrivate *priv = meta_wayland_surface_role_cursor_get_instance_private (cursor_role); - ClutterRect rect; + ClutterPoint point; ClutterRect logical_monitor_rect; - rect = meta_cursor_renderer_calculate_rect (priv->cursor_renderer, - priv->cursor_sprite); logical_monitor_rect = meta_rectangle_to_clutter_rect (&logical_monitor->rect); - return clutter_rect_intersection (&rect, &logical_monitor_rect, NULL); + + point = meta_cursor_renderer_get_position (priv->cursor_renderer); + + return clutter_rect_contains_point (&logical_monitor_rect, &point); } static void |