pass proper window to gdk_window_get_pointer(), NULL does not work with GTK3
authorPaul Cornett <paulcor@bullseye.com>
Fri, 12 Aug 2011 05:33:59 +0000 (05:33 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Fri, 12 Aug 2011 05:33:59 +0000 (05:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/utilsgtk.cpp

index e8d6cf9b441964e632d42c748facb99f02094c99..fee8aa86a2c21ab7e6d3ab2d738df0274d34d157 100644 (file)
@@ -90,7 +90,7 @@ void wxDisplaySizeMM( int *width, int *height )
 
 void wxGetMousePosition( int* x, int* y )
 {
-    gdk_window_get_pointer( NULL, x, y, NULL );
+    gdk_window_get_pointer(gtk_widget_get_root_window(wxGetRootWindow()), x, y, NULL);
 }
 
 bool wxColourDisplay()