[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mouse button handling
From: |
Thomas Dickey |
Subject: |
Re: Mouse button handling |
Date: |
Sat, 17 Sep 2011 14:23:58 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Sep 16, 2011 at 09:44:39PM +0200, Damien Guibouret wrote:
> I have found a problem in what I sent previously: when merging clicks
> into doubleclicks and tripleclicks, I remove the check that clicks were
> done with same button. So here is the changes to set it back.
I'm missing something: the patch appears to modify a later version
of your patch from a week ago. (The "merge = FALSE" assignment doesn't
appear in that context before or after the previous patch).
> Regards,
>
> Damien
> --- ncurses-5.9.patch/ncurses/base/lib_mouse.c 2011-09-16
> 05:50:19.000000000 +0200
> +++ ncurses-5.9/ncurses/base/lib_mouse.c 2011-09-16 20:58:31.771697056
> +0200
> @@ -1253,6 +1253,7 @@
> merge = FALSE;
> for (b = 1; b <= MAX_BUTTONS; ++b) {
> if ((sp->_mouse_mask &
> MASK_DOUBLE_CLICK(b))
> + && (ep->bstate &
> MASK_CLICK(b))
> && (next->bstate &
> MASK_CLICK(b))) {
> next->bstate &= ~MASK_CLICK(b);
> next->bstate |=
> MASK_DOUBLE_CLICK(b);
> @@ -1269,6 +1270,7 @@
> merge = FALSE;
> for (b = 1; b <= MAX_BUTTONS; ++b) {
> if ((sp->_mouse_mask &
> MASK_TRIPLE_CLICK(b))
> + && (ep->bstate &
> MASK_DOUBLE_CLICK(b))
> && (next->bstate &
> MASK_CLICK(b))) {
> next->bstate &= ~MASK_CLICK(b);
> next->bstate |=
> MASK_TRIPLE_CLICK(b);
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature
- Re: Mouse button handling, (continued)
- Re: Mouse button handling, Damien Guibouret, 2011/09/04
- Re: Mouse button handling, Damien Guibouret, 2011/09/07
- Re: Mouse button handling, Thomas Dickey, 2011/09/10
- Re: Mouse button handling, Damien Guibouret, 2011/09/11
- Re: Mouse button handling, Thomas Dickey, 2011/09/12
- Re: Mouse button handling, Anders Juel Jensen, 2011/09/15
- Re: Mouse button handling, Thomas Dickey, 2011/09/15
- Re: Mouse button handling, Damien Guibouret, 2011/09/16
- Re: Mouse button handling, Damien Guibouret, 2011/09/16
- Re: Mouse button handling,
Thomas Dickey <=
- Re: Mouse button handling, Thomas Dickey, 2011/09/17
Re: Mouse button handling, Anders Juel Jensen, 2011/09/12