From 0638dca29a39207a5eb348791543bb17638d5407 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 26 Mar 2019 08:19:42 +0100 Subject: [PATCH] win32: remove another call to gdk_device_warp() Inline the implementation (untested). To fix the build. --- gdk/win32/gdksurface-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index f5ce2b357c..fcf43bc33f 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -4112,7 +4112,7 @@ setup_drag_move_resize_context (GdkSurface *window, * the titlebar is, if any. */ root_y = wy + wheight / 2; - gdk_device_warp (device, root_x, root_y); + SetCursorPos (root_x - _gdk_offset_x, root_y - _gdk_offset_y); } }