Re: [Spice-devel] [patch 2/2] send KEYVAL messages if agent has VD_AGENT_CAP_KEYVAL

2013-10-09 Thread Dietmar Maurer
> > I want to get key repetition message here! > > Can you be more precise? As you can read in spice-gtk code, send_key() is > still > doing some filtering of gtk key events, not directly sending them as Spice > events: I miss-understood that code, but now I can see how it works. > send_key()

Re: [Spice-devel] [patch 2/2] send KEYVAL messages if agent has VD_AGENT_CAP_KEYVAL

2013-10-09 Thread Marc-André Lureau
- Original Message - > > > switch (key->type) { > > > case GDK_KEY_PRESS: > > > +flags |= VD_AGENT_KEYVAL_FLAG_DOWN; > > > +spice_main_send_keyval(d->main, key->keyval, flags); > > > > This is the wrong place if you want to avoid the key repeatition issue > > so

Re: [Spice-devel] [patch 2/2] send KEYVAL messages if agent has VD_AGENT_CAP_KEYVAL

2013-10-09 Thread Dietmar Maurer
> > switch (key->type) { > > case GDK_KEY_PRESS: > > +flags |= VD_AGENT_KEYVAL_FLAG_DOWN; > > +spice_main_send_keyval(d->main, key->keyval, flags); > > This is the wrong place if you want to avoid the key repeatition issue solved > by > "send_key" (synthesize press_and_r

Re: [Spice-devel] [patch 2/2] send KEYVAL messages if agent has VD_AGENT_CAP_KEYVAL

2013-10-09 Thread Marc-André Lureau
On Mon, Oct 7, 2013 at 11:44 AM, wrote: > Signed-off-by: Dietmar Maurer > > Index: new/gtk/channel-main.c > === > --- new.orig/gtk/channel-main.c 2013-10-07 11:01:52.0 +0200 > +++ new/gtk/channel-main.c 2013-10-07 11:02

[Spice-devel] [patch 2/2] send KEYVAL messages if agent has VD_AGENT_CAP_KEYVAL

2013-10-07 Thread dietmar
Signed-off-by: Dietmar Maurer Index: new/gtk/channel-main.c === --- new.orig/gtk/channel-main.c 2013-10-07 11:01:52.0 +0200 +++ new/gtk/channel-main.c 2013-10-07 11:02:51.0 +0200 @@ -191,6 +191,7 @@ [ VD_AGE