[mutter/wip/carlosg/input-thread: 51/97] backends: Use graphene_point_t on meta_cursor_tracker_get_pointer()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 51/97] backends: Use graphene_point_t on meta_cursor_tracker_get_pointer()
- Date: Wed, 28 Oct 2020 19:37:30 +0000 (UTC)
commit b1c215e142ca101d36acd00e102949b62a443faf
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jul 13 12:06:12 2020 +0200
backends: Use graphene_point_t on meta_cursor_tracker_get_pointer()
It's nicer to propagate along.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
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 eb0dc85df0..bdd80f53a2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]