diff options
author | Rudimar Ronsoni Jr <rudimar@outlook.com> | 2024-08-19 21:08:01 +0200 |
---|---|---|
committer | Linn Mattsson <linma@cendio.se> | 2024-10-22 12:41:33 +0200 |
commit | 1df8a64277b1d616151811a46e355069faba7958 (patch) | |
tree | c3b3d7ecf047b25c3431d08c3a0d7fdb3955936b | |
parent | 3d57484757b3955012ff8d86c253e44aed7ec1ad (diff) | |
download | tigervnc-1df8a64277b1d616151811a46e355069faba7958.tar.gz tigervnc-1df8a64277b1d616151811a46e355069faba7958.zip |
Apple only: exit FL_Window fullscreen if active in order to minimize.
(cherry picked from commit a1bd5cf795d36dd4ce17e980b5cb0a7f200756b5)
-rw-r--r-- | vncviewer/Viewport.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 5dd5f7ef..be2cbc8f 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -1311,6 +1311,10 @@ void Viewport::popupContextMenu() ((DesktopWindow*)window())->fullscreen_on(); break; case ID_MINIMIZE: +#ifdef __APPLE__ + if (window()->fullscreen_active()) + window()->fullscreen_off(); +#endif window()->iconize(); break; case ID_RESIZE: |