Commit 196ac78c authored by Richard M. Stallman's avatar Richard M. Stallman

(popup_get_selection): Click not in menu deactivates menu.

parent a4e51a7a
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,Ad(Brv <jan.h.d@swipnet.se>
* macmenu.c (cleanup_popup_menu): New function.
......
......@@ -1235,6 +1235,10 @@ popup_get_selection (initial_event, dpyinfo, id, do_timers)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment