aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/x.c b/x.c
index 9b2faee..4b26aae 100644
--- a/x.c
+++ b/x.c
@@ -407,7 +407,9 @@ mousereport(XEvent *e)
button = 3;
} else {
button -= Button1;
- if (button >= 3)
+ if (button >= 7)
+ button += 128 - 7;
+ else if (button >= 3)
button += 64 - 3;
}
if (e->xbutton.type == ButtonPress) {