From de0848b28b6ee210c2db0b38318bb06cef6fd8c1 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 13 Jul 2020 12:06:12 +0200 Subject: [PATCH] backends: Use graphene_point_t on meta_cursor_tracker_get_pointer() It's nicer to propagate along. Part-of: --- src/wayland/meta-wayland-dnd-surface.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wayland/meta-wayland-dnd-surface.c b/src/wayland/meta-wayland-dnd-surface.c index eb0dc85df..bdd80f53a 100644 --- a/src/wayland/meta-wayland-dnd-surface.c +++ b/src/wayland/meta-wayland-dnd-surface.c @@ -78,10 +78,11 @@ dnd_surface_find_logical_monitor (MetaWaylandActorSurface *actor_surface) meta_backend_get_cursor_tracker (backend); MetaMonitorManager *monitor_manager = meta_backend_get_monitor_manager (backend); - int x, y; + graphene_point_t point; - meta_cursor_tracker_get_pointer (cursor_tracker, &x, &y, NULL); - return meta_monitor_manager_get_logical_monitor_at (monitor_manager, x, y); + meta_cursor_tracker_get_pointer (cursor_tracker, &point, NULL); + return meta_monitor_manager_get_logical_monitor_at (monitor_manager, + point.x, point.y); } static double