Index: emacs/src/xmenu.c
diff -c emacs/src/xmenu.c:1.290 emacs/src/xmenu.c:1.291
*** emacs/src/xmenu.c:1.290     Tue May 24 03:45:42 2005
--- emacs/src/xmenu.c   Sat Jun  4 18:05:28 2005
***************
*** 1235,1240 ****
--- 1235,1244 ----
        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


_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs

Reply via email to