+2005-06-04 Richard M. Stallman <rms@gnu.org>
+
+ * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
+
2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* macmenu.c (cleanup_popup_menu): New function.
if (event.type == ButtonRelease
&& dpyinfo->display == event.xbutton.display)
{
+ /* If the click is not on the menu, deactivate the menu. */
+ if (x_any_window_to_frame (dpyinfo, event.xexpose.window))
+ popup_activated_flag = 0;
+
dpyinfo->grabbed &= ~(1 << event.xbutton.button);
#ifdef USE_MOTIF /* Pretending that the event came from a
Btn1Down seems the only way to convince Motif to