aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c7
1 files changed, 7 insertions, 0 deletions
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)
1719 break; 1719 break;
1720 } 1720 }
1721 } 1721 }
1722 else if (event.type == UnmapNotify)
1723 {
1724 /* If the menu disappears, there is no need to stay in the
1725 loop. */
1726 if (event.xunmap.window == menu->core.window)
1727 break;
1728 }
1722 1729
1723 XtDispatchEvent (&event); 1730 XtDispatchEvent (&event);
1724 if (queue_and_exit 1731 if (queue_and_exit