diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-05 16:59:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-05 16:59:12 +0000 |
| commit | 528ee9925c8f88cafe4313959daf3c1d4c2d5b90 (patch) | |
| tree | ece5ea5f387e0997d57454dca651a06c316e91dc | |
| parent | term: fix mouse button mapping to X button numbers (diff) | |
term: re-order switch-cases to be in X button order
| -rw-r--r-- | terminal.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -385,12 +385,12 @@ linux_mouse_button_to_x(int button) { switch (button) { case BTN_LEFT: return 1; - case BTN_RIGHT: return 3; case BTN_MIDDLE: return 2; - case BTN_SIDE: return 8; - case BTN_EXTRA: return 9; + case BTN_RIGHT: return 3; case BTN_BACK: return 4; case BTN_FORWARD: return 5; + case BTN_SIDE: return 8; + case BTN_EXTRA: return 9; case BTN_TASK: return -1; /* TODO: ??? */ default: |
