Commit Diff


commit - 4ef0cbd8b9371f37f7d02ef37b5378b879e6b8bf
commit + 9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f
blob - 120e495df49c650856251a785e9716acf90d6a39
blob + 8bf998e1dedb7ad592a03b985db2e606f9523ec9
--- x.c
+++ x.c
@@ -387,7 +387,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) {