mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
cd02286b87
commit
de0848b28b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user