]> source.dussan.org Git - tigervnc.git/commitdiff
Apple only: exit FL_Window fullscreen if active in order to minimize. 1813/head
authorRudimar Ronsoni Jr <rudimar@outlook.com>
Mon, 19 Aug 2024 19:08:01 +0000 (21:08 +0200)
committerRudimar Ronsoni Jr <rudimar@outlook.com>
Mon, 19 Aug 2024 19:08:01 +0000 (21:08 +0200)
vncviewer/Viewport.cxx

index b0778505c381b6ba5684c7d9380bba74caa4335e..ed5f98997b03795fdd12ba686b37485b4e0447c2 100644 (file)
@@ -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: