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
+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 */
}