mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
clutter: Drop clutter_input_device_set_state()
Nothing uses it anymore. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:

committed by
Marge Bot

parent
7d78768809
commit
932a5cab09
@ -1343,20 +1343,6 @@ meta_event_dispatch (GSource *g_source,
|
||||
|
||||
if (event)
|
||||
{
|
||||
ClutterModifierType event_state;
|
||||
ClutterInputDevice *input_device =
|
||||
clutter_event_get_source_device (event);
|
||||
MetaInputDeviceNative *device_evdev =
|
||||
META_INPUT_DEVICE_NATIVE (input_device);
|
||||
MetaSeatNative *seat =
|
||||
meta_input_device_native_get_seat (device_evdev);
|
||||
|
||||
/* update the device states *before* the event */
|
||||
event_state = seat->button_state |
|
||||
xkb_state_serialize_mods (seat->xkb, XKB_STATE_MODS_EFFECTIVE);
|
||||
_clutter_input_device_set_state (seat->core_pointer, event_state);
|
||||
_clutter_input_device_set_state (seat->core_keyboard, event_state);
|
||||
|
||||
/* forward the event into clutter for emission etc. */
|
||||
_clutter_stage_queue_event (event->any.stage, event, FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user