From: Richard M. Stallman Date: Sun, 17 Jul 1994 06:41:53 +0000 (+0000) Subject: [USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events. X-Git-Tag: emacs-19.34~7584 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f22aa617007edf2fe6aff9b0dfc0601e4bf837aa;p=emacs.git [USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events. --- diff --git a/src/xmenu.c b/src/xmenu.c index 8eb1c14c368..758b43995ab 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -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