diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-03-26 09:39:36 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-03-26 09:39:56 +0100 |
commit | e05ea21e0167a37bb1bc1aebf20b5e903c5cf15e (patch) | |
tree | aefc5c56063d2cdd1bfe452a58962d1a9e48a5da /vncviewer/DesktopWindow.cxx | |
parent | aaeee37f0ad4afb2e857aa07bd2874ca3e8ecde4 (diff) | |
download | tigervnc-e05ea21e0167a37bb1bc1aebf20b5e903c5cf15e.tar.gz tigervnc-e05ea21e0167a37bb1bc1aebf20b5e903c5cf15e.zip |
Do maximize more properly on macOS
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 78893925..2ca13eea 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -1023,15 +1023,9 @@ void DesktopWindow::maximizeWindow() } else ShowWindow(fl_xid(this), SW_MAXIMIZE); #elif defined(__APPLE__) - // OS X is somewhat strange and does not really have a concept of a - // maximized window, so we can simply resize the window to the workarea. - // Note that we shouldn't do this whilst in full screen as that will - // incorrectly adjust things. if (fullscreen_active()) return; - int X, Y, W, H; - Fl::screen_work_area(X, Y, W, H, this->x(), this->y()); - size(W, H); + cocoa_win_zoom(this); #else // X11 fl_open_display(); |