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.
This commit is contained in:
Jasper St. Pierre 2014-04-18 18:21:43 -04:00
parent 97a69cee5a
commit 29439f8de2

View File

@ -732,8 +732,8 @@ begin_grab_op_on_surface (MetaWaylandSurface *surface,
1, /* button. XXX? */ 1, /* button. XXX? */
0, /* modmask */ 0, /* modmask */
meta_display_get_current_time_roundtrip (window->display), meta_display_get_current_time_roundtrip (window->display),
wl_fixed_to_int (seat->pointer.grab_x), seat->pointer.grab_x,
wl_fixed_to_int (seat->pointer.grab_y)); seat->pointer.grab_y);
} }
static void static void