[Xcb] [Bug 93701] New: xcb_xkb_get_names reply always returns "us" layout until XCB_XKB_NEW_KEYBOARD_NOTIFY detects first keypress

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 13 12:18:37 PST 2016


https://bugs.freedesktop.org/show_bug.cgi?id=93701

            Bug ID: 93701
           Summary: xcb_xkb_get_names reply always returns "us" layout
                    until XCB_XKB_NEW_KEYBOARD_NOTIFY detects first
                    keypress
           Product: XCB
           Version: 1.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Library
          Assignee: xcb at lists.freedesktop.org
          Reporter: doktor5000 at arcor.de
        QA Contact: xcb at lists.freedesktop.org

It was suggested via https://github.com/sddm/sddm/issues/202 to report this
here as it seems to be an XCB bug. To reproduce, start e.g. sddm with a
non-english keyboard layout (selected via localectl) and it will always show
"us" layout until the first key has been pressed, then the correct layout will
be shown and also used.

More detailed description via davispuh:
https://github.com/sddm/sddm/issues/202#issuecomment-133628462

> This is Xcb bug (even with latest libxcb from git master branch), because in XcbKeyboardBackend::initLayouts
> 
>         cookie = xcb_xkb_get_names(m_conn,
>                 XCB_XKB_ID_USE_CORE_KBD,
>                 XCB_XKB_NAME_DETAIL_GROUP_NAMES | XCB_XKB_NAME_DETAIL_SYMBOLS);
>         reply = xcb_xkb_get_names_reply(m_conn, cookie, nullptr);
> it always returns "us" layout on startup, but as soon as any key is pressed then > XCB_XKB_NEW_KEYBOARD_NOTIFY event will be issued and then it will return correct > layout.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20160113/99f206ac/attachment.html>


More information about the Xcb mailing list