diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-23 09:41:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-23 09:41:35 +0000 |
| commit | 1253f5e27eec0e970c1b31681ce84cc30af71b87 (patch) | |
| tree | 465958b8b1da46aac0702aa8e0bb1393920da69f /terminal.c | |
| parent | changelog: add bug ref to the ‘FreeBSD support’ entry (diff) | |
| parent | terminal: fix encoding of mouse buttons 6 and 7 in mouse events (diff) | |
Merge branch 'mouse-button-encoding-of-button-6-7'
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -2369,14 +2369,10 @@ encode_xbutton(int xbutton) case 1: case 2: case 3: return xbutton - 1; - case 4: case 5: + case 4: case 5: case 6: case 7: /* Like button 1 and 2, but with 64 added */ return xbutton - 4 + 64; - case 6: case 7: - /* Same as 4 and 5. Note: the offset should be something else? */ - return xbutton - 6 + 64; - case 8: case 9: case 10: case 11: /* Similar to 4 and 5, but adding 128 instead of 64 */ return xbutton - 8 + 128; |
