diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 044c7ca587..043dec0ff2 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1540,10 +1540,10 @@ static wxVoidPtrBoolMap gs_needCursorResetMap; static const wxCursor* gs_overrideCursor; -static void SendSetCursorEvent(wxWindow* win, int x, int y) +static void SendSetCursorEvent(wxWindowGTK* win, int x, int y) { wxSetCursorEvent event(x, y); - wxWindow* w = win; + wxWindowGTK* w = win; do { if (w->GTKProcessEvent(event)) { @@ -3742,7 +3742,7 @@ void wxWindowGTK::GTKUpdateCursor(bool isBusyOrGlobalCursor, bool isRealize) isBusyOrGlobalCursor = true; else if (wxIsBusy()) { - wxWindow* win = wxGetTopLevelParent(this); + wxWindow* win = wxGetTopLevelParent(static_cast(this)); if (win && win->m_widget && !gtk_window_get_modal(GTK_WINDOW(win->m_widget))) isBusyOrGlobalCursor = true; }