Avoid calling ScreenToClient() on invisible window while processing wxSetCursorEvent

(cherry picked from commit b47319d515)
This commit is contained in:
Paul Cornett
2016-11-05 19:44:45 -07:00
parent e465b4cb2d
commit 2241f97775

View File

@@ -1578,7 +1578,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);
}