diff --git a/x.c b/x.c index b798182..526e3f0 100644 --- a/x.c +++ b/x.c @@ -405,7 +405,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) {