From: Rudimar Ronsoni Jr Date: Mon, 19 Aug 2024 19:08:01 +0000 (+0200) Subject: Apple only: exit FL_Window fullscreen if active in order to minimize. X-Git-Tag: v1.14.1~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1df8a64277b1d616151811a46e355069faba7958;p=tigervnc.git Apple only: exit FL_Window fullscreen if active in order to minimize. (cherry picked from commit a1bd5cf795d36dd4ce17e980b5cb0a7f200756b5) --- 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: