Otherwise coordinates are incorrect and the window can jump around after
starting a drag.
{
GdkEventSequence *sequence;
double start_x, start_y;
- gint window_x, window_y;
+ int native_x, native_y;
+ int window_x, window_y;
GtkNative *native;
GdkSurface *surface;
start_x, start_y,
&window_x, &window_y);
+ gtk_native_get_surface_transform (native, &native_x, &native_y);
+ window_x += native_x;
+ window_y += native_y;
+
surface = gtk_native_get_surface (native);
gdk_surface_begin_move_drag (surface,
gtk_gesture_get_device (GTK_GESTURE (gesture)),