1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00

[USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events.

This commit is contained in:
Richard M. Stallman 1994-07-17 06:41:53 +00:00
parent b6522df6aa
commit f22aa61700

View file

@ -1719,6 +1719,13 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
break;
}
}
else if (event.type == UnmapNotify)
{
/* If the menu disappears, there is no need to stay in the
loop. */
if (event.xunmap.window == menu->core.window)
break;
}
XtDispatchEvent (&event);
if (queue_and_exit