Avoid calling ScreenToClient() on invisible window while processing wxSetCursorEvent

This commit is contained in:
Paul Cornett
2016-11-05 19:44:45 -07:00
parent 9c3900e40d
commit b47319d515

View File

@@ -1693,7 +1693,7 @@ static void SendSetCursorEvent(wxWindowGTK* win, int x, int y)
break;
w = w->GetParent();
if ( !w )
if (w == NULL || w->m_widget == NULL || !gtk_widget_get_visible(w->m_widget))
break;
posClient = w->ScreenToClient(posScreen);
}