Skip to content

Commit

Permalink
Apple only: exit FL_Window fullscreen if active in order to minimize.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudironsonijr committed Aug 19, 2024
1 parent e6fb057 commit a1bd5cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vncviewer/Viewport.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1bd5cf

Please sign in to comment.