diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-18 20:59:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-18 20:59:31 +0000 |
commit | 3f8461b76909179c3164c26664b4250b886e053c (patch) | |
tree | 21d0e8deef5d2c0842cda7a7e3fc3463273e77f8 /gdk/win32 | |
parent | 37e2d4d89271dd9ce72eb1a2bcdb9edac0ba5707 (diff) | |
download | gdk-pixbuf-3f8461b76909179c3164c26664b4250b886e053c.tar.gz |
Add pointer warping to GDK. (#160437)
2005-01-18 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdisplay.h:
* gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
* gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
pointer warping to GDK. (#160437)
* gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkwindow-win32.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index bb7502ac7..bc3f69d50 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -2140,6 +2140,15 @@ _gdk_windowing_get_pointer (GdkDisplay *display, _gdk_windowing_window_get_pointer (display, root_window, x, y, mask); } +void +gdk_display_warp_pointer (GdkDisplay *display, + GdkScreen *screen, + gint x, + gint y) +{ + SetCursorPos (x, y); +} + GdkWindow* _gdk_windowing_window_at_pointer (GdkDisplay *display, gint *win_x, |