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

Hans de Goede hdegoede at redhat.com
Sat May 19 01:51:57 PDT 2012


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)


More information about the Spice-devel mailing list