mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
caee8db89a
commit
664041d04f
1 changed files with 2 additions and 2 deletions
4
input.c
4
input.c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue