summaryrefslogtreecommitdiff
path: root/src/backends/x11/meta-input-device-x11.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-11-19 12:21:26 +0100
committerMarge Bot <marge-bot@gnome.org>2020-11-27 15:14:34 +0000
commit71b4c0ee02cea56373e9a64b3acd5513fdcd770b (patch)
tree242340781a02470e78542299dff68911679cfcdd /src/backends/x11/meta-input-device-x11.c
parentc7f989c1e22f65bfa3a0eef8a80cb635ffba25d9 (diff)
downloadmutter-71b4c0ee02cea56373e9a64b3acd5513fdcd770b.tar.gz
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>
Diffstat (limited to 'src/backends/x11/meta-input-device-x11.c')
-rw-r--r--src/backends/x11/meta-input-device-x11.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/backends/x11/meta-input-device-x11.c b/src/backends/x11/meta-input-device-x11.c
index 3d82cce50..545a3a339 100644
--- a/src/backends/x11/meta-input-device-x11.c
+++ b/src/backends/x11/meta-input-device-x11.c
@@ -107,20 +107,6 @@ meta_input_device_x11_constructed (GObject *object)
}
static gboolean
-meta_input_device_x11_keycode_to_evdev (ClutterInputDevice *device,
- uint32_t hardware_keycode,
- uint32_t *evdev_keycode)
-{
- /* When using evdev under X11 the hardware keycodes are the evdev
- keycodes plus 8. I haven't been able to find any documentation to
- know what the +8 is for. FIXME: This should probably verify that
- X server is using evdev. */
- *evdev_keycode = hardware_keycode - 8;
-
- return TRUE;
-}
-
-static gboolean
meta_input_device_x11_is_grouped (ClutterInputDevice *device,
ClutterInputDevice *other_device)
{
@@ -296,7 +282,6 @@ meta_input_device_x11_class_init (MetaInputDeviceX11Class *klass)
gobject_class->set_property = meta_input_device_x11_set_property;
gobject_class->get_property = meta_input_device_x11_get_property;
- device_class->keycode_to_evdev = meta_input_device_x11_keycode_to_evdev;
device_class->is_grouped = meta_input_device_x11_is_grouped;
device_class->get_group_n_modes = meta_input_device_x11_get_group_n_modes;
device_class->is_mode_switch_button = meta_input_device_x11_is_mode_switch_button;