input: doh! mouse_scroll: first argument to keyboard_key() is a struct wayland

This is the problem with void* user data pointers in callbacks...
This commit is contained in:
Daniel Eklöf 2019-11-30 16:54:41 +01:00
parent caee8db89a
commit 664041d04f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -644,8 +644,8 @@ mouse_scroll(struct wayland *wayl, int amount)
xkb_keycode_t key = button == BTN_BACK ? key_arrow_up : key_arrow_down;
for (int i = 0; i < amount; i++)
keyboard_key(term, NULL, wayl->input_serial, 0, key - 8, XKB_KEY_DOWN);
keyboard_key(term, NULL, wayl->input_serial, 0, key - 8, XKB_KEY_UP);
keyboard_key(wayl, NULL, wayl->input_serial, 0, key - 8, XKB_KEY_DOWN);
keyboard_key(wayl, NULL, wayl->input_serial, 0, key - 8, XKB_KEY_UP);
} else {
for (int i = 0; i < amount; i++)
term_mouse_down(term, button, wayl->mouse.row, wayl->mouse.col,