[oi-dev] x11 keyboard layouts

Alexander Pyhalov alp at rsu.ru
Thu Apr 27 09:11:46 UTC 2017


On 04/26/17 07:08 PM, Alan Coopersmith wrote:
> On 04/26/17 06:10 AM, Alexander Pyhalov wrote:
>> Hello.
>>
>> I'm a bit confused.
>> I'm trying to get keyboard layout from xscreensaver-lock and see
>> unexpected
>> results.
>>
>> I have a function which returns current layout (see below), which
>> works fine
>> when compiled standalone. But when I compile it as part of
>> xscreensaver-lock , I
>> suddenly find out that it sees two XKB groups
>> 'English (US)' instead of 'English (US)' and 'Russian'.
>> So I see that we use group number 0 or 1, but their names are masked.
>>
>> Do you have any suggestions where xscreensaver-lock can manage to do
>> it? :)
>
> Sorry - I never learned how multiple keyboard layout groups work in XKB.
>

It seems I've got something working... 
https://github.com/OpenIndiana/oi-userland/pull/3017/files

-- 
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department




More information about the oi-dev mailing list