[Spice-devel] [PATCH spice-gtk 2/2] Add a warning if scancode lookup failed
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Oct 15 09:17:49 PDT 2012
This helps tracking some send_keys() issues, such as
https://bugzilla.gnome.org/show_bug.cgi?id=686170
---
gtk/spice-widget.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 47afa40..391cd39 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -1192,6 +1192,9 @@ static guint get_scancode_from_keyval(SpiceDisplay *display, guint keyval)
/* FIXME what about levels? */
keycode = keys[0].keycode;
g_free(keys);
+ } else {
+ g_warning("could not lookup keyval %u, please report a bug", keyval);
+ return 0;
}
return vnc_display_keymap_gdk2xtkbd(d->keycode_map, d->keycode_maplen, keycode);
--
1.7.11.7
More information about the Spice-devel
mailing list