backends: Use graphene_point_t on meta_cursor_tracker_get_pointer()

It's nicer to propagate along.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
Carlos Garnacho 2020-07-13 12:06:12 +02:00 committed by Marge Bot
parent cd02286b87
commit de0848b28b

View File

@ -78,10 +78,11 @@ dnd_surface_find_logical_monitor (MetaWaylandActorSurface *actor_surface)
meta_backend_get_cursor_tracker (backend); meta_backend_get_cursor_tracker (backend);
MetaMonitorManager *monitor_manager = MetaMonitorManager *monitor_manager =
meta_backend_get_monitor_manager (backend); meta_backend_get_monitor_manager (backend);
int x, y; graphene_point_t point;
meta_cursor_tracker_get_pointer (cursor_tracker, &x, &y, NULL); meta_cursor_tracker_get_pointer (cursor_tracker, &point, NULL);
return meta_monitor_manager_get_logical_monitor_at (monitor_manager, x, y); return meta_monitor_manager_get_logical_monitor_at (monitor_manager,
point.x, point.y);
} }
static double static double