X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/753cba1a750ae50d39313201ffa29bd14f7bcf71..74a8f67d96591cec101def2a7d47c64072aff7fd:/src/gtk/utilsgtk.cpp diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index e8d6cf9b44..fee8aa86a2 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -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()