Ensure mousewheel clicks don't break chords. - sam - An updated version of the … | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit ca3f18dd65e8d34bf696c3f8a1dac06836ac7d8c | |
parent 671af52f913d608f39b9c91c9dc2545fd5d6467d | |
Author: Rob King <[email protected]> | |
Date: Fri, 22 Jan 2016 09:55:19 -0600 | |
Ensure mousewheel clicks don't break chords. | |
Credit for this patch goes to Tommy Pettersson. | |
Diffstat: | |
samterm/main.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/samterm/main.c b/samterm/main.c | |
@@ -103,7 +103,7 @@ main(int argc, char *argv[]) | |
if (chord == 1 && !mouse.buttons) | |
chord = 0; | |
if (chord) | |
- chord |= mouse.buttons; | |
+ chord |= mouse.buttons & 7; | |
else if(mouse.buttons&1){ | |
if(nwhich){ | |
if(nwhich!=which) |