Re: [PATCH spice-gtk 1/2] If grab sequence is matched, still send modifier keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looks good, ACK series.

Regards,

Hans


On 05/18/2012 03:28 PM, Marc-André Lureau wrote:
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)
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]