[mutter/gbsneto/content: 5/5] wayland/tablet-tool: Use meta_wayland_surface_get_relative_coordinates()



commit e8978e1a02c194e57ec8912573742d3b99d177f0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jul 9 12:36:16 2019 -0300

    wayland/tablet-tool: Use meta_wayland_surface_get_relative_coordinates()
    
    Instead of directly calling into clutter_actor_transform_stage_point().
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/409

 src/wayland/meta-wayland-tablet-tool.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/wayland/meta-wayland-tablet-tool.c b/src/wayland/meta-wayland-tablet-tool.c
index a149b1e67..52c63dd96 100644
--- a/src/wayland/meta-wayland-tablet-tool.c
+++ b/src/wayland/meta-wayland-tablet-tool.c
@@ -657,14 +657,10 @@ meta_wayland_tablet_tool_get_relative_coordinates (MetaWaylandTabletTool *tool,
                                                    wl_fixed_t            *sx,
                                                    wl_fixed_t            *sy)
 {
-  MetaSurfaceActor *surface_actor;
   float xf, yf;
 
-  surface_actor = meta_wayland_surface_get_actor (surface);
-
   clutter_event_get_coords (event, &xf, &yf);
-  clutter_actor_transform_stage_point (CLUTTER_ACTOR (surface_actor),
-                                       xf, yf, &xf, &yf);
+  meta_wayland_surface_get_relative_coordinates (surface, xf, yf, &xf, &yf);
 
   *sx = wl_fixed_from_double (xf) / surface->scale;
   *sy = wl_fixed_from_double (yf) / surface->scale;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]