Avoid deferred show when TLW decoration size is already known

See https://github.com/wxWidgets/wxWidgets/pull/789
This commit is contained in:
Paul Cornett
2018-04-28 16:00:03 -07:00
parent 20a98406f0
commit cec5d067e5

View File

@@ -973,6 +973,11 @@ bool wxTopLevelWindowGTK::Show( bool show )
if (deferShow)
{
deferShow = m_deferShowAllowed &&
// Assume size (from cache or wxPersistentTLW) is correct.
// Avoids problems when WM initially provides an incorrect value
// for extents, then corrects it later.
m_decorSize.top == 0 &&
gs_requestFrameExtentsStatus != RFE_STATUS_BROKEN &&
!gtk_widget_get_realized(m_widget) &&
GDK_IS_X11_DISPLAY(gtk_widget_get_display(m_widget)) &&