[Spice-devel] [PATCH spice-gtk 1/2] If grab sequence is matched, still send modifier keys
Marc-André Lureau
marcandre.lureau at gmail.com
Fri May 18 06:28:24 PDT 2012
If the last key pressed from the grab sequence is a modifier
key, let send it to the guest too.
This solves the issue of default grab-sequence being ctrl+alt
and preventing ctrl+alt+del from working.
---
gtk/spice-widget.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index e6c252d..86d5f3e 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -980,7 +980,10 @@ static gboolean key_event(GtkWidget *widget, GdkEventKey *key)
try_mouse_grab(display);
}
- return true;
+ // that's the last key pressed from the grab sequence
+ // let send it to the remote if it's a modifier key
+ if (!key->is_modifier)
+ return true;
}
if (!d->inputs)
--
1.7.10.1
More information about the Spice-devel
mailing list