emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: mouse-2 on menu item yanks into current buffer]


From: Jason Rumney
Subject: Re: address@hidden: mouse-2 on menu item yanks into current buffer]
Date: Sat, 11 Mar 2006 14:43:22 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Eli Zaretskii <address@hidden> writes:

> Would Windows GUI gurus please look at the patch below and tell if
> it's the right one?  It does seem to fix the problem for me (on
> Windows XP):

Can you try it with just the final segment of your patch. The right
button seems to already be filtered out by the system (or somewhere
else in Emacs I haven't noticed), so the code to ignore the right
button is superfluous I think.



> Index: src/w32fns.c
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/w32fns.c,v
> retrieving revision 1.262
> diff -u -p -r1.262 w32fns.c
> --- src/w32fns.c      6 Feb 2006 15:23:22 -0000       1.262
> +++ src/w32fns.c      11 Mar 2006 13:52:50 -0000
> @@ -3250,6 +3260,11 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
>       BOOL up;
>       int button;
>  
> +     /* Ignore middle and extra buttons as long as the menu is active.  */
> +     f = x_window_to_frame (dpyinfo, hwnd);
> +     if (f && f->output_data.w32->menubar_active)
> +       return 0;
> +
>       if (parse_button (msg, HIWORD (wParam), &button, &up))
>         {
>           if (up) ReleaseCapture ();




reply via email to

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