[mutter] wayland-surface: Fix offset with window dragging



commit 29439f8de275b39e12b3f14765a35465105171bc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Apr 18 18:21:43 2014 -0400

    wayland-surface: Fix offset with window dragging
    
    The grab_x / grab_y here were converted from fixed integers to
    floats, but we forgot to update one place in the code that used
    them as fixed integers.

 src/wayland/meta-wayland-surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index b9219fc..158bdad 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -732,8 +732,8 @@ begin_grab_op_on_surface (MetaWaylandSurface *surface,
                                      1, /* button. XXX? */
                                      0, /* modmask */
                                      meta_display_get_current_time_roundtrip (window->display),
-                                     wl_fixed_to_int (seat->pointer.grab_x),
-                                     wl_fixed_to_int (seat->pointer.grab_y));
+                                     seat->pointer.grab_x,
+                                     seat->pointer.grab_y);
 }
 
 static void


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