From 1df8a64277b1d616151811a46e355069faba7958 Mon Sep 17 00:00:00 2001 From: Rudimar Ronsoni Jr Date: Mon, 19 Aug 2024 21:08:01 +0200 Subject: [PATCH] Apple only: exit FL_Window fullscreen if active in order to minimize. (cherry picked from commit a1bd5cf795d36dd4ce17e980b5cb0a7f200756b5) --- vncviewer/Viewport.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.39.5