virtual-input-device/native: Fix warning message

We want to log the evdev keycode here, not the Clutter one.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1065
This commit is contained in:
Jonas Dreßler 2020-02-18 14:58:51 +01:00 committed by Jonas Ådahl
parent efe1bc2e59
commit e07478f8bc

View File

@ -417,7 +417,7 @@ meta_virtual_input_device_native_notify_keyval (ClutterVirtualInputDevice *virtu
key_count = update_button_count (virtual_evdev, evcode, key_state); key_count = update_button_count (virtual_evdev, evcode, key_state);
if (key_count < 0 || key_count > 1) if (key_count < 0 || key_count > 1)
{ {
g_warning ("Received multiple virtual 0x%x key %s (ignoring)", keycode, g_warning ("Received multiple virtual 0x%x key %s (ignoring)", evcode,
key_state == CLUTTER_KEY_STATE_PRESSED ? "presses" : "releases"); key_state == CLUTTER_KEY_STATE_PRESSED ? "presses" : "releases");
update_button_count (virtual_evdev, evcode, 1 - key_state); update_button_count (virtual_evdev, evcode, 1 - key_state);
return; return;