[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mouse button handling
From: |
Damien Guibouret |
Subject: |
Re: Mouse button handling |
Date: |
Fri, 16 Sep 2011 21:44:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050416 |
Hello,
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.
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);
- Re: Mouse button handling, (continued)
- Re: Mouse button handling, Thomas Dickey, 2011/09/03
- 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 <=
- Re: Mouse button handling, Thomas Dickey, 2011/09/17
- Re: Mouse button handling, Thomas Dickey, 2011/09/17
Re: Mouse button handling, Anders Juel Jensen, 2011/09/12