From 29439f8de275b39e12b3f14765a35465105171bc Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 18 Apr 2014 18:21:43 -0400 Subject: [PATCH] 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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index b9219fc99..158bdadc2 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