From 5e4f5d7d963f7acff4dbd4f08c123bcf41717ba5 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Wed, 18 Jan 2017 21:24:50 -0500 Subject: [PATCH] IsMaximized() return is ambiguous for OSX full-screen vs. filled-screen; use Y position instead.. --- src/AppFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 05b9f4d..91fd5b7 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -1322,7 +1322,7 @@ void AppFrame::OnClose(wxCloseEvent& event) { } #ifdef __APPLE__ - if (!this->IsMaximized()) { + if (this->GetPosition().y > 0) { wxGetApp().getConfig()->setWindow(this->GetPosition(), this->GetClientSize()); wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized()); }