mirror of https://github.com/mpv-player/mpv
wayland: remove input modifier variable
This variable was never used anywhere.
This commit is contained in:
parent
db0c3d79f8
commit
3899e594ea
|
@ -292,22 +292,10 @@ static void keyboard_handle_key(void *data,
|
|||
|
||||
const xkb_keysym_t *syms;
|
||||
xkb_keysym_t sym;
|
||||
xkb_mod_mask_t mask;
|
||||
|
||||
code = key + 8;
|
||||
num_syms = xkb_key_get_syms(input->xkb.state, code, &syms);
|
||||
|
||||
mask = xkb_state_serialize_mods(input->xkb.state,
|
||||
XKB_STATE_DEPRESSED | XKB_STATE_LATCHED);
|
||||
|
||||
input->modifiers = 0;
|
||||
if (mask & input->xkb.control_mask)
|
||||
input->modifiers |= MOD_CONTROL_MASK;
|
||||
if (mask & input->xkb.alt_mask)
|
||||
input->modifiers |= MOD_ALT_MASK;
|
||||
if (mask & input->xkb.shift_mask)
|
||||
input->modifiers |= MOD_SHIFT_MASK;
|
||||
|
||||
sym = XKB_KEY_NoSymbol;
|
||||
if (num_syms == 1)
|
||||
sym = syms[0];
|
||||
|
|
|
@ -109,8 +109,6 @@ struct vo_wayland_input {
|
|||
xkb_mod_mask_t control_mask;
|
||||
xkb_mod_mask_t alt_mask;
|
||||
} xkb;
|
||||
|
||||
int modifiers;
|
||||
};
|
||||
|
||||
struct vo_wayland_state {
|
||||
|
|
Loading…
Reference in New Issue