summaryrefslogtreecommitdiff
path: root/gdk/win32
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2013-08-14 18:46:15 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2013-08-26 10:30:13 +0800
commitbd596144907e423ab842f7240067ab6f99eb35d4 (patch)
treea64a1de0850ff5192fdc1f08624896f0527cf858 /gdk/win32
parent0e01f9cc9c32b0dfc60901c3f0ec3f6c408bb430 (diff)
downloadgtk+-bd596144907e423ab842f7240067ab6f99eb35d4.tar.gz
gdk/win32/gdkdevice-virtual.c: Various fixes
...for the gdk_cursor_new_from_surface work (commit b2113b73) where the types of some parameters were changed, and also to silence a critical GDK_IS_DEVICE when a menu item is selected (courtesy of LE GARREC Vincent from bug 696756). https://bugzilla.gnome.org/show_bug.cgi?id=705980
Diffstat (limited to 'gdk/win32')
-rw-r--r--gdk/win32/gdkdevice-virtual.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk/win32/gdkdevice-virtual.c b/gdk/win32/gdkdevice-virtual.c
index 8a77ebf501..f93c28a0c3 100644
--- a/gdk/win32/gdkdevice-virtual.c
+++ b/gdk/win32/gdkdevice-virtual.c
@@ -41,8 +41,8 @@ static void gdk_device_virtual_set_window_cursor (GdkDevice *device,
GdkCursor *cursor);
static void gdk_device_virtual_warp (GdkDevice *device,
GdkScreen *screen,
- gint x,
- gint y);
+ gdouble x,
+ gdouble y);
static void gdk_device_virtual_query_state (GdkDevice *device,
GdkWindow *window,
GdkWindow **root_window,
@@ -234,8 +234,8 @@ gdk_device_virtual_set_window_cursor (GdkDevice *device,
static void
gdk_device_virtual_warp (GdkDevice *device,
GdkScreen *screen,
- gint x,
- gint y)
+ gdouble x,
+ gdouble y)
{
SetCursorPos (x - _gdk_offset_x, y - _gdk_offset_y);
}
@@ -330,7 +330,7 @@ gdk_device_virtual_ungrab (GdkDevice *device,
ReleaseCapture ();
}
- _gdk_display_device_grab_update (display, device, NULL, 0);
+ _gdk_display_device_grab_update (display, device, device, 0);
}
static void