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

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

Re: mouse pointer changes to I-bar over menu items


From: Jason Rumney
Subject: Re: mouse pointer changes to I-bar over menu items
Date: Sat, 08 Apr 2006 19:08:41 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Eli Zaretskii <address@hidden> writes:

> Does the change below look good?  It fixes the problem for me.

Yes, that looks like it will do the right thing.

> Index: src/w32fns.c
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/w32fns.c,v
> retrieving revision 1.267
> diff -u -p -r1.267 w32fns.c
> --- src/w32fns.c      8 Apr 2006 12:26:25 -0000       1.267
> +++ src/w32fns.c      8 Apr 2006 12:57:27 -0000
> @@ -3297,6 +3297,14 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
>        return (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONUP);
>  
>      case WM_MOUSEMOVE:
> +      /* Ignore mouse movements as long as the menu is active.  These
> +      movements are processed by the window manager anyway, and
> +      it's wrong to handle them as if they happened on the
> +      underlying frame.  */
> +      f = x_window_to_frame (dpyinfo, hwnd);
> +      if (f && f->output_data.w32->menubar_active)
> +     return 0;
> +
>        /* If the mouse has just moved into the frame, start tracking
>        it, so we will be notified when it leaves the frame.  Mouse
>        tracking only works under W98 and NT4 and later. On earlier




reply via email to

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