summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2013-05-01 15:46:01 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2013-05-01 15:46:01 +0200
commit3899e594eaf26553fad68ed3e95556577fc6d786 (patch)
treefb6a41bfe72739f93ab971c652d72fa1736b07b0 /video
parentdb0c3d79f8dc53e07d0215fd1c67a0922e735d8f (diff)
downloadmpv-3899e594eaf26553fad68ed3e95556577fc6d786.tar.bz2
mpv-3899e594eaf26553fad68ed3e95556577fc6d786.tar.xz
wayland: remove input modifier variable
This variable was never used anywhere.
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c12
-rw-r--r--video/out/wayland_common.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 12bffce386..8c8033f87a 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -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];
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 30706686fe..a9f3975672 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -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 {