]> source.dussan.org Git - tigervnc.git/commitdiff
Apple only: exit FL_Window fullscreen if active in order to minimize.
authorRudimar Ronsoni Jr <rudimar@outlook.com>
Mon, 19 Aug 2024 19:08:01 +0000 (21:08 +0200)
committerLinn Mattsson <linma@cendio.se>
Tue, 22 Oct 2024 10:41:33 +0000 (12:41 +0200)
(cherry picked from commit a1bd5cf795d36dd4ce17e980b5cb0a7f200756b5)

vncviewer/Viewport.cxx

index 5dd5f7efc56f99dd00af2a3e2c0665e20e42f64d..be2cbc8f7986efdc9407b0023dc9ce521cda0e72 100644 (file)
@@ -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: