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:
parent
b6522df6aa
commit
f22aa61700
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue