git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58956
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool m_grabbed;
bool m_updateDecorSize;
bool m_grabbed;
bool m_updateDecorSize;
+ bool m_deferShowAllowed;
};
#endif // _WX_GTK_TOPLEVEL_H_
};
#endif // _WX_GTK_TOPLEVEL_H_
m_gdkFunc = 0;
m_grabbed = false;
m_deferShow = true;
m_gdkFunc = 0;
m_grabbed = false;
m_deferShow = true;
+ m_deferShowAllowed = true;
m_updateDecorSize = true;
m_urgency_hint = -2;
m_updateDecorSize = true;
m_urgency_hint = -2;
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
- bool deferShow = show && !m_isShown && m_deferShow;
+ bool deferShow = show && !m_isShown && m_deferShow && m_deferShowAllowed;
if (deferShow)
{
deferShow = false;
if (deferShow)
{
deferShow = false;
{
wxCHECK_RET( m_widget, wxT("invalid frame") );
{
wxCHECK_RET( m_widget, wxT("invalid frame") );
+ m_deferShowAllowed = true;
+
// deal with the position first
int old_x = m_x;
int old_y = m_y;
// deal with the position first
int old_x = m_x;
int old_y = m_y;
void wxTopLevelWindowGTK::DoSetClientSize(int width, int height)
{
void wxTopLevelWindowGTK::DoSetClientSize(int width, int height)
{
- if (m_deferShow && !m_isShown)
- // Since client size is being explicitly set, don't change it later
- m_deferShow = false;
+ // Since client size is being explicitly set, don't change it later
+ m_deferShowAllowed = false;
+
wxTopLevelWindowBase::DoSetClientSize(width, height);
}
wxTopLevelWindowBase::DoSetClientSize(width, height);
}