From 2241f977755080e7e465497cffc2655256f17386 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 5 Nov 2016 19:44:45 -0700 Subject: [PATCH] Avoid calling ScreenToClient() on invisible window while processing wxSetCursorEvent (cherry picked from commit b47319d51554fdb8432832b4c5232b871202e272) --- src/gtk/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 1d3c55f1f9..0826e068d4 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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); }