pass proper window to gdk_window_get_pointer(), NULL does not work with GTK3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2011-08-12 05:33:59 +00:00
parent f8a1c5715f
commit 803a1b9454

View File

@@ -90,7 +90,7 @@ void wxDisplaySizeMM( int *width, int *height )
void wxGetMousePosition( int* x, int* y ) 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() bool wxColourDisplay()