X11: toggle off perm_invent if the window is closed manually

This commit is contained in:
Pasi Kallinen
2026-08-13 11:16:45 +03:00
parent a64c7c64e5
commit b56189cfcd
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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
+2
View File
@@ -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 */
}