// Menu constants
-enum { ID_EXIT, ID_FULLSCREEN, ID_RESIZE,
+enum { ID_EXIT, ID_FULLSCREEN, ID_MINIMIZE, ID_RESIZE,
ID_CTRL, ID_ALT, ID_MENUKEY, ID_CTRLALTDEL,
ID_REFRESH, ID_OPTIONS, ID_INFO, ID_ABOUT, ID_DISMISS };
fltk_menu_add(contextMenu, _("&Full screen"), 0, NULL, (void*)ID_FULLSCREEN,
FL_MENU_TOGGLE | (window()->fullscreen_active()?FL_MENU_VALUE:0));
+ fltk_menu_add(contextMenu, _("Minimi&ze"), 0, NULL,
+ (void*)ID_MINIMIZE, 0);
fltk_menu_add(contextMenu, _("Resize &window to session"), 0, NULL,
(void*)ID_RESIZE,
(window()->fullscreen_active()?FL_MENU_INACTIVE:0) |
else
((DesktopWindow*)window())->fullscreen_on();
break;
+ case ID_MINIMIZE:
+ window()->iconize();
case ID_RESIZE:
if (window()->fullscreen_active())
break;