Avoid calling ScreenToClient() on invisible window while processing wxSetCursorEvent
(cherry picked from commit b47319d515
)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user