From a1bd5cf795d36dd4ce17e980b5cb0a7f200756b5 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. --- vncviewer/Viewport.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index b0778505..ed5f9899 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -1315,6 +1315,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