diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-01-22 05:10:11 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-01-22 05:10:11 -0500 |
| commit | 1da3d9e8aa36d620cffab1861409f49b7e18cf94 (patch) | |
| tree | 8dd3d07d75535d359beaa02ef4890804ceb9acd7 /main.c | |
| parent | d04f7e07d4a5278e8e8530925e2852b591d6e37b (diff) | |
| download | suggpicker-1da3d9e8aa36d620cffab1861409f49b7e18cf94.tar.gz | |
kbd: don't send time
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/main.c b/main.c index c7d04ec..7ee6e0a 100644 --- a/main.c +++ b/main.c @@ -147,18 +147,18 @@ wl_touch_down(void *data, struct wl_touch *wl_touch, uint32_t serial, touch_x = wl_fixed_to_int(x); touch_y = wl_fixed_to_int(y); - kbd_unpress_key(&keyboard, time); + kbd_unpress_key(&keyboard); next_key = kbd_get_key(&keyboard, touch_x, touch_y); if (next_key) { - kbd_press_key(&keyboard, next_key, time); + kbd_press_key(&keyboard, next_key); } } void wl_touch_up(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, int32_t id) { - kbd_release_key(&keyboard, time); + kbd_release_key(&keyboard); } void @@ -169,7 +169,7 @@ wl_touch_motion(void *data, struct wl_touch *wl_touch, uint32_t time, touch_x = wl_fixed_to_int(x); touch_y = wl_fixed_to_int(y); - kbd_motion_key(&keyboard, time, touch_x, touch_y); + kbd_motion_key(&keyboard, touch_x, touch_y); } void @@ -204,7 +204,7 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer, uint32_t time, cur_y = wl_fixed_to_int(surface_y); if (cur_press) { - kbd_motion_key(&keyboard, time, cur_x, cur_y); + kbd_motion_key(&keyboard, cur_x, cur_y); } } @@ -215,15 +215,15 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, uint32_t serial, cur_press = state == WL_POINTER_BUTTON_STATE_PRESSED; if (cur_press) { - kbd_unpress_key(&keyboard, time); + kbd_unpress_key(&keyboard); } else { - kbd_release_key(&keyboard, time); + kbd_release_key(&keyboard); } if (cur_press && cur_x >= 0 && cur_y >= 0) { next_key = kbd_get_key(&keyboard, cur_x, cur_y); if (next_key) { - kbd_press_key(&keyboard, next_key, time); + kbd_press_key(&keyboard, next_key); } } } |
