Skip to content

Commit

Permalink
Merge pull request #1813 from rudironsonijr/fix/macos-not-minimizing
Browse files Browse the repository at this point in the history
Apple only: exit FL_Window fullscreen if active in order to minimize.
  • Loading branch information
LMattsson authored Aug 23, 2024
2 parents cfed31b + a1bd5cf commit 3979e3c
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 3979e3c

Please sign in to comment.