diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 15:54:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 15:54:41 +0000 |
| commit | 664041d04f7ace891914eea98a781ba5c9372a70 (patch) | |
| tree | 694fdbaad009c6d72e1c405c36fef05af529880c /input.c | |
| parent | commands: scrollback: don't scrollback if mouse tracking is enabled (diff) | |
input: doh! mouse_scroll: first argument to keyboard_key() is a struct wayland
This is the problem with void* user data pointers in callbacks...
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |
