IsMaximized() return is ambiguous for OSX full-screen vs. filled-screen; use Y position instead..

This commit is contained in:
Charles J. Cliffe 2017-01-18 21:24:50 -05:00
parent 066d634d24
commit 5e4f5d7d96

View File

@ -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());
}