<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xcb_xkb_get_names reply always returns "us" layout until XCB_XKB_NEW_KEYBOARD_NOTIFY detects first keypress"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93701">93701</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xcb_xkb_get_names reply always returns "us" layout until XCB_XKB_NEW_KEYBOARD_NOTIFY detects first keypress
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>XCB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.11
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>doktor5000@arcor.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It was suggested via <a href="https://github.com/sddm/sddm/issues/202">https://github.com/sddm/sddm/issues/202</a> 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:
<a href="https://github.com/sddm/sddm/issues/202#issuecomment-133628462">https://github.com/sddm/sddm/issues/202#issuecomment-133628462</a>

<span class="quote">> 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.</span ></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>