clutter: Drop keycode_to_evdev vmethod

This is just used in the native backend, move it to an utility
function there.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:
Carlos Garnacho
2020-11-19 12:21:26 +01:00
committed by Marge Bot
parent c7f989c1e2
commit 71b4c0ee02
8 changed files with 13 additions and 76 deletions

View File

@ -538,8 +538,7 @@ apply_level_modifiers (ClutterVirtualInputDevice *virtual_device,
&keycode, NULL))
return;
clutter_input_device_keycode_to_evdev (virtual_evdev->impl_state->device,
keycode, &evcode);
evcode = meta_xkb_keycode_to_evdev (keycode);
meta_topic (META_DEBUG_INPUT,
"Emitting virtual key-%s of modifier key 0x%x (device %p)",
@ -576,8 +575,7 @@ notify_keyval (GTask *task)
goto out;
}
clutter_input_device_keycode_to_evdev (virtual_evdev->impl_state->device,
keycode, &evcode);
evcode = meta_xkb_keycode_to_evdev (keycode);
if (get_button_type (evcode) != EVDEV_BUTTON_TYPE_KEY)
{