[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] hw/display/xenfb: Simulate auto-repeat key events
New tigervnc server changes the way to send long pressed key, from "down up down up ..." to "down down ... up". So we insert an up event after each key down event to simulate auto-repeat key events for xen keyboard frontend driver. Signed-off-by: Liang Yan <lyan@xxxxxxxx> --- hw/display/xenfb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index 8e2547ac05..a5f787a3f3 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -292,6 +292,9 @@ static void xenfb_key_event(void *opaque, int scancode) } trace_xenfb_key_event(opaque, scancode2linux[scancode], down); xenfb_send_key(xenfb, down, scancode2linux[scancode]); + if (down) { /* simulate auto-repeat key events */ + xenfb_send_key(xenfb, 0, scancode2linux[scancode]); + } } /* -- 2.14.2 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |