--- gdk/win32/gdkdevice-virtual.c.old	2013-06-19 23:20:05.469934369 +0200
+++ gdk/win32/gdkdevice-virtual.c	2013-06-19 23:20:19.849934217 +0200
@@ -330,7 +330,7 @@ gdk_device_virtual_ungrab (GdkDevice *de
       ReleaseCapture ();
     }
 
-  _gdk_display_device_grab_update (display, device, NULL, 0);
+  _gdk_display_device_grab_update (display, device, device, 0);
 }
 
 static void
