diff --git a/src/backends/native/meta-xkb-utils.c b/src/backends/native/meta-xkb-utils.c index 6fdd2cf24..1ec12a37b 100644 --- a/src/backends/native/meta-xkb-utils.c +++ b/src/backends/native/meta-xkb-utils.c @@ -98,19 +98,6 @@ meta_key_event_new_from_evdev (ClutterInputDevice *device, return event; } -void -meta_xkb_translate_state (ClutterEvent *event, - struct xkb_state *state, - uint32_t button_state) -{ - _clutter_event_set_state_full (event, - button_state, - xkb_state_serialize_mods (state, XKB_STATE_MODS_DEPRESSED), - xkb_state_serialize_mods (state, XKB_STATE_MODS_LATCHED), - xkb_state_serialize_mods (state, XKB_STATE_MODS_LOCKED), - xkb_state_serialize_mods (state, XKB_STATE_MODS_EFFECTIVE) | button_state); -} - ClutterModifierType meta_xkb_translate_modifiers (struct xkb_state *state, ClutterModifierType button_state) diff --git a/src/backends/native/meta-xkb-utils.h b/src/backends/native/meta-xkb-utils.h index 58eae7437..c00530124 100644 --- a/src/backends/native/meta-xkb-utils.h +++ b/src/backends/native/meta-xkb-utils.h @@ -32,9 +32,6 @@ ClutterEvent * meta_key_event_new_from_evdev (ClutterInputDevice *device, uint64_t time_us, uint32_t key, uint32_t state); -void meta_xkb_translate_state (ClutterEvent *event, - struct xkb_state *xkb_state, - uint32_t button_state); ClutterModifierType meta_xkb_translate_modifiers (struct xkb_state *state, ClutterModifierType button_state); uint32_t meta_xkb_keycode_to_evdev (uint32_t hardware_keycode);