X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea098413d0e9c3f794f43826137a636e229f26f9..bf9ea288180725b3aaf780b54b1659557d90c827:/src/x11/toplevel.cpp?ds=sidebyside diff --git a/src/x11/toplevel.cpp b/src/x11/toplevel.cpp index 0f7e4a9b4d..9d16c98353 100644 --- a/src/x11/toplevel.cpp +++ b/src/x11/toplevel.cpp @@ -268,7 +268,7 @@ void wxTopLevelWindowX11::OnInternalIdle() { wxSizeEvent event( GetClientSize(), GetId() ); event.SetEventObject( this ); - GetEventHandler()->ProcessEvent( event ); + HandleWindowEvent( event ); m_needResizeInIdle = false; } @@ -285,7 +285,7 @@ bool wxTopLevelWindowX11::Show(bool show) wxSizeEvent event(GetSize(), GetId()); event.SetEventObject(this); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); m_needResizeInIdle = false; } @@ -299,7 +299,7 @@ bool wxTopLevelWindowX11::Show(bool show) // wxTopLevelWindowX11 maximize/minimize // ---------------------------------------------------------------------------- -void wxTopLevelWindowX11::Maximize(bool maximize) +void wxTopLevelWindowX11::Maximize(bool WXUNUSED(maximize)) { // TODO } @@ -312,6 +312,12 @@ bool wxTopLevelWindowX11::IsMaximized() const void wxTopLevelWindowX11::Iconize(bool iconize) { + if ( !iconize ) + { + Restore(); + return; + } + if (!m_iconized && GetMainWindow()) { if (XIconifyWindow(wxGlobalDisplay(),