aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 9103d32e1c9..826c9330c46 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1235,6 +1235,10 @@ popup_get_selection (initial_event, dpyinfo, id, do_timers)
1235 if (event.type == ButtonRelease 1235 if (event.type == ButtonRelease
1236 && dpyinfo->display == event.xbutton.display) 1236 && dpyinfo->display == event.xbutton.display)
1237 { 1237 {
1238 /* If the click is not on the menu, deactivate the menu. */
1239 if (x_any_window_to_frame (dpyinfo, event.xexpose.window))
1240 popup_activated_flag = 0;
1241
1238 dpyinfo->grabbed &= ~(1 << event.xbutton.button); 1242 dpyinfo->grabbed &= ~(1 << event.xbutton.button);
1239#ifdef USE_MOTIF /* Pretending that the event came from a 1243#ifdef USE_MOTIF /* Pretending that the event came from a
1240 Btn1Down seems the only way to convince Motif to 1244 Btn1Down seems the only way to convince Motif to