diff --git a/input.c b/input.c index 740fb9aa..ffa676e2 100644 --- a/input.c +++ b/input.c @@ -76,7 +76,6 @@ keyboard_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface) { struct terminal *term = data; - term->input_serial = serial; term_focus_out(term); mtx_lock(&term->kbd.repeat.mutex); @@ -92,7 +91,6 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state) { struct terminal *term = data; - term->input_serial = serial; const xkb_mod_mask_t ctrl = 1 << term->kbd.mod_ctrl; const xkb_mod_mask_t alt = 1 << term->kbd.mod_alt; @@ -280,7 +278,6 @@ keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t mods_locked, uint32_t group) { struct terminal *term = data; - term->input_serial = serial; LOG_DBG("modifiers: depressed=0x%x, latched=0x%x, locked=0x%x, group=%u", mods_depressed, mods_latched, mods_locked, group); @@ -328,7 +325,6 @@ wl_pointer_enter(void *data, struct wl_pointer *wl_pointer, wl_fixed_t surface_x, wl_fixed_t surface_y) { struct terminal *term = data; - term->input_serial = serial; int x = wl_fixed_to_int(surface_x) * 1; //scale int y = wl_fixed_to_int(surface_y) * 1; //scale @@ -343,8 +339,6 @@ static void wl_pointer_leave(void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface) { - struct terminal *term = data; - term->input_serial = serial; } static void @@ -389,7 +383,6 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, LOG_DBG("BUTTON: button=%x, state=%u", button, state); struct terminal *term = data; - term->input_serial = serial; switch (state) { case WL_POINTER_BUTTON_STATE_PRESSED: {