[gtk] win32: remove another call to gdk_device_warp()



commit 0638dca29a39207a5eb348791543bb17638d5407
Author: Christoph Reiter <creiter src gnome org>
Date:   Tue Mar 26 08:19:42 2019 +0100

    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);
         }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]