aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-17 06:41:53 +0000
committerRichard M. Stallman1994-07-17 06:41:53 +0000
commitf22aa617007edf2fe6aff9b0dfc0601e4bf837aa (patch)
tree2d2640bf6d7c73f7e40ff5ab241249c2b2064007
parentb6522df6aa5876ed7eb6f33d2fff0246f9583937 (diff)
downloademacs-f22aa617007edf2fe6aff9b0dfc0601e4bf837aa.tar.gz
emacs-f22aa617007edf2fe6aff9b0dfc0601e4bf837aa.zip
[USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events.
-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