mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
backends/native: Drop clutter_event_set_state_full() helpers
Since the full decomposed modifier state is unused, and only the effective modifier mask matters to users, the new constructors take just this effective modifier mask. This means this helper went unused in the port to the new constructors, so can be now dropped. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3153>
This commit is contained in:
parent
b809023f4d
commit
a837b105d0
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user