From f2dff5115f987f1fb81febf2eac24467d63e8207 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 25 Mar 2019 10:15:27 -0400 Subject: [PATCH] win32: Drop the warp implementation We no longer support pointer warping. --- gdk/win32/gdkdevice-virtual.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gdk/win32/gdkdevice-virtual.c b/gdk/win32/gdkdevice-virtual.c index 6a719518ff..c7e7bdb20e 100644 --- a/gdk/win32/gdkdevice-virtual.c +++ b/gdk/win32/gdkdevice-virtual.c @@ -112,14 +112,6 @@ gdk_device_virtual_set_surface_cursor (GdkDevice *device, g_set_object (&GDK_SURFACE_IMPL_WIN32 (window->impl)->cursor, win32_hcursor); } -static void -gdk_device_virtual_warp (GdkDevice *device, - gdouble x, - gdouble y) -{ - SetCursorPos (x - _gdk_offset_x, y - _gdk_offset_y); -} - static void gdk_device_virtual_query_state (GdkDevice *device, GdkSurface *window, @@ -198,7 +190,6 @@ gdk_device_virtual_class_init (GdkDeviceVirtualClass *klass) device_class->get_history = gdk_device_virtual_get_history; device_class->get_state = gdk_device_virtual_get_state; device_class->set_surface_cursor = gdk_device_virtual_set_surface_cursor; - device_class->warp = gdk_device_virtual_warp; device_class->query_state = gdk_device_virtual_query_state; device_class->grab = gdk_device_virtual_grab; device_class->ungrab = gdk_device_virtual_ungrab;