XLookupString return inconsistent

Lucien Gentis lucien.gentis at univ-lorraine.fr
Mon Sep 12 14:39:02 UTC 2016


Hello,

same here with french keyboard and "Shift + Ctrl_L + 2".

(because on french keyboard, you have to press "Shift + 2" in order to 
get "2" key)

Linux Ubuntu 16.04 on VirtualBox

Host is Windows Seven


Le 12/09/2016 à 14:21, martin f krafft a écrit :
> Hello,
>
> My window manager uses the number keys to switch between tags (it's
> "awesome"). I noticed that for a while, I was no longer able to move
> a client to tag "2" (Mod4-Shift-2), while moving to other tags
> worked fine. Also, I could still switch to tag "2" (Mod4-2), so it
> was something about the shift key, I gathered.
>
> Well, not so. Using xev, I discovered the following:
>
> Entering "1" and "2" into the xev gives consistent results. Holding
> down shift yields "!" and "@" as it should for a US keyboard.
>
> However, as soon as I touch Control_L or Control_R at the same time,
> something weird happens. Here's the output for Control_L + 1:
>
>    KeyPress event, serial 1684, synthetic NO, window 0x4200001,
>        root 0x4b9, subw 0x0, time 4065591518, (117,69), root:(3486,798),
>        state 0x14, keycode 10 (keysym 0x31, 1), same_screen YES,
>        XLookupString gives 1 bytes: (31) "1"
>        XmbLookupString gives 1 bytes: (31) "1"
>        XFilterEvent returns: False
>
> but look at what happens for Control_L + 2:
>
>    KeyPress event, serial 1684, synthetic NO, window 0x4200001,
>        root 0x4b9, subw 0x0, time 4065592038, (117,69), root:(3486,798),
>        state 0x14, keycode 11 (keysym 0x32, 2), same_screen YES,
>        XLookupString gives 1 bytes: (00) ""
>        XmbLookupString gives 1 bytes: (00) ""
>        XFilterEvent returns: False
>
> Note how the keysym is correct, but then XLookupString and/or
> XmbLookupString instead return the empty string.
>
> This happens whether I load the US or the DE xkb map, using
> setxkbmap.
>
> Do you have any idea what might be going on?
>
>
>
> _______________________________________________
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s

-- 
Lucien GENTIS
UNIVERSITE DE LORRAINE - ESPE
Centre de Ressources Informatiques
5, Rue Paul Richard
C.O. 3 - MAXEVILLE
54528 LAXOU-CEDEX

Tél. 03 72 74 13 28
Email : lucien.gentis at univ-lorraine.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg/attachments/20160912/6213a3c0/attachment.html>


More information about the xorg mailing list