[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: does XkbSetMap affect XTestFakeKeyEvent?
From: Daiki Ueno <ueno () unixuser ! org>
Date: 2012-10-25 2:52:58
Message-ID: m3zk3b6z5h.fsf-ueno () unixuser ! org
[Download RAW message or body]
Daiki Ueno <ueno@unixuser.org> writes:
> (1) assign a keysym to some unused keycode (like keycode 246, which
> XF86WLAN is assigned here) with XkbSetMap
> (2) send key press event using XTestFakeKeyEvent to get the keysym typed
>
> Is this supposed to work? After (1), I could type the new keysym with
> physical keyboard, but couldn't with XTestFakeKeyEvent. If I change the
> mapping with XChangeKeyboardMapping instead of XkbSetMap, it seems to
> work with both physical and virtual keyboard.
Sorry for the noise.
It was solved by setting xkb->device_spec when calling XkbSetMap.
Regards,
--
Daiki Ueno
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic