input: use keyboard enter serial only for selection serial

This commit is contained in:
Daniel Eklöf 2019-07-30 19:29:04 +02:00
parent f39d848368
commit f5e9b7b048
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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: {