diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d133b4bcce..098882920c 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2483,6 +2483,9 @@ void wxWindowGTK::Init() m_delayedForegroundColour = FALSE; m_delayedBackgroundColour = FALSE; + + m_oldClientWidth = 0; + m_oldClientHeight = 0; #ifdef __WXGTK20__ m_imContext = NULL; diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index d133b4bcce..098882920c 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -2483,6 +2483,9 @@ void wxWindowGTK::Init() m_delayedForegroundColour = FALSE; m_delayedBackgroundColour = FALSE; + + m_oldClientWidth = 0; + m_oldClientHeight = 0; #ifdef __WXGTK20__ m_imContext = NULL;