emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yes-or-no-p menu


From: jhd
Subject: Re: yes-or-no-p menu
Date: Sat, 4 Jun 2005 09:04:02 +0200


4 jun 2005 kl. 00.33 skrev Richard Stallman:

Does this patch fix it?

*** xmenu.c    24 May 2005 19:13:15 -0400    1.290
--- xmenu.c    03 Jun 2005 18:32:12 -0400
***************
*** 1235,1240 ****
--- 1235,1243 ----
        if (event.type == ButtonRelease
            && dpyinfo->display == event.xbutton.display)
          {
+       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

xmenu.c is not used on Mac AFAIK, Mac uses macmenu.c instead. The behaviour reported seems to be particular to the Mac port, on X11 yes- or-no-p does a quit in the case described. I briefly looked at it a while back, and I can fix the quit behaviour to be the same as on X11.

But I would also like C-g to do a quit as it does on X11, but I could not find a way to make PopUpMenuSelect return and pop down the menu form within an event handler function. Anybody knows how to do that?

    Jan D.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]