term: fix mouse button mapping to X button numbers

BACK should be 4, FORWARD 5.
This commit is contained in:
Daniel Eklöf 2019-08-05 18:32:35 +02:00
parent 3ae210d4c5
commit c15d546740
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -389,8 +389,8 @@ linux_mouse_button_to_x(int button)
case BTN_MIDDLE: return 2;
case BTN_SIDE: return 8;
case BTN_EXTRA: return 9;
case BTN_FORWARD: return 4;
case BTN_BACK: return 5;
case BTN_BACK: return 4;
case BTN_FORWARD: return 5;
case BTN_TASK: return -1; /* TODO: ??? */
default: