[mutter] virtual-input-device/native: Fix warning message
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] virtual-input-device/native: Fix warning message
- Date: Wed, 19 Feb 2020 18:35:55 +0000 (UTC)
commit e07478f8bc29f2bcb875dd60111f19fc74f3ad25
Author: Jonas Dreßler <verdre v0yd nl>
Date: Tue Feb 18 14:58:51 2020 +0100
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
src/backends/native/meta-virtual-input-device-native.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-virtual-input-device-native.c
b/src/backends/native/meta-virtual-input-device-native.c
index c89b9081e..a4d6ba494 100644
--- a/src/backends/native/meta-virtual-input-device-native.c
+++ b/src/backends/native/meta-virtual-input-device-native.c
@@ -417,8 +417,8 @@ meta_virtual_input_device_native_notify_keyval (ClutterVirtualInputDevice *virtu
key_count = update_button_count (virtual_evdev, evcode, key_state);
if (key_count < 0 || key_count > 1)
{
- g_warning ("Received multiple virtual 0x%x key %s (ignoring)", keycode,
- key_state == CLUTTER_KEY_STATE_PRESSED ? "presses" : "releases");
+ g_warning ("Received multiple virtual 0x%x key %s (ignoring)", evcode,
+ key_state == CLUTTER_KEY_STATE_PRESSED ? "presses" : "releases");
update_button_count (virtual_evdev, evcode, 1 - key_state);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]