From d87a766214407ea34916ac0df2ace6458e057891 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 27 Jun 2017 09:28:05 -0700 Subject: [PATCH] Avoid showing hidden window during deferred show handling See https://github.com/wxWidgets/wxWidgets/pull/512 --- src/gtk/toplevel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 85a6a3b755..42ca6f1ca0 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -1359,6 +1359,9 @@ void wxTopLevelWindowGTK::GTKUpdateDecorSize(const DecorSize& decorSize) #ifdef __WXGTK3__ GTKSizeRevalidate(); #endif + if (!m_isShown) + return; + gtk_widget_show(m_widget); #ifdef __WXGTK3__