X11: toggle off perm_invent if the window is closed manually
This commit is contained in:
@@ -246,6 +246,7 @@ X11: improve TTY-style status line with text attributes for status hilites,
|
||||
hitpointbar, some unicode support, 3-line status
|
||||
X11: fix menu windows being taller than the screen
|
||||
X11: allow menu scrolling by pageup/pagedown/home/end keys
|
||||
X11: toggle off perm_invent if user closes the perm inventory window
|
||||
|
||||
|
||||
General New Features
|
||||
|
||||
@@ -616,6 +616,8 @@ menu_popdown(struct xwindow *wp)
|
||||
wp->w = wp->popup = (Widget) 0;
|
||||
if (wp->menu_information->is_active)
|
||||
exit_x_event = TRUE; /* exit our event handler */
|
||||
if (wp->menu_information->permi)
|
||||
iflags.perm_invent = FALSE;
|
||||
wp->menu_information->is_up = FALSE; /* menu is down */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user