Skip to content

Commit

Permalink
Added support for WMHI_ICONIFY and WMHI_UNICONIFY events.
Browse files Browse the repository at this point in the history
  • Loading branch information
salass00 committed Oct 4, 2016
1 parent dd4c4d8 commit 9beba33
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@ int gui_main(struct LocaleInfo *loc, struct WBStartup *wbs) {
if (signals & window_sigs) {
BOOL hide = FALSE;
BOOL iconify = FALSE;
BOOL uniconify = FALSE;
uint32 result;
uint16 code;
uint32 id;
Expand Down Expand Up @@ -1659,6 +1660,14 @@ int gui_main(struct LocaleInfo *loc, struct WBStartup *wbs) {
}
break;

case WMHI_ICONIFY:
iconify = TRUE;
break;

case WMHI_UNICONIFY:
uniconify = TRUE;
break;

case WMHI_CLOSEWINDOW:
hide = TRUE;
break;
Expand All @@ -1669,6 +1678,8 @@ int gui_main(struct LocaleInfo *loc, struct WBStartup *wbs) {
gui_hide_window(gd);
} else if (iconify) {
gui_iconify_window(gd);
} else if (uniconify) {
gui_show_window(gd);
}
}
}
Expand Down

0 comments on commit 9beba33

Please sign in to comment.