aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudimar Ronsoni Jr <rudimar@outlook.com>2024-08-19 21:08:01 +0200
committerLinn Mattsson <linma@cendio.se>2024-10-22 12:41:33 +0200
commit1df8a64277b1d616151811a46e355069faba7958 (patch)
treec3b3d7ecf047b25c3431d08c3a0d7fdb3955936b
parent3d57484757b3955012ff8d86c253e44aed7ec1ad (diff)
downloadtigervnc-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.cxx4
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: