bug-ncurses
[Top][All Lists]
Advanced

[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);

reply via email to

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