<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><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#c4">Comment # 4</a>
              on <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">bug 93701</a>
              from <span class="vcard"><a class="email" href="mailto:ran234@gmail.com" title="Ran Benita <ran234@gmail.com>"> <span class="fn">Ran Benita</span></a>
</span></b>
        <pre>From what you describe, it is likely a server bug (or not a bug). My guess is
that for some reason you initially get the default RMLVO (XKB configuration)
for the core keyboard device. The default is US (unless it is changed in the
xserver build ./configure). You can try to trace back the callers of this
function:
<a href="http://cgit.freedesktop.org/xorg/xserver/tree/xkb/xkbInit.c?id=e6b106715f24112d1dc7a84c6e37df4b5debb2d0#n112">http://cgit.freedesktop.org/xorg/xserver/tree/xkb/xkbInit.c?id=e6b106715f24112d1dc7a84c6e37df4b5debb2d0#n112</a>

You say that you set the XKB config through localctl, which IIRC writes an
xserver config file with the RMLVO. This means you should be getting the
correct keymap right from the start. But there might be some lazy
initialization or race condition or maybe it's intentional.

I don't have time to investigate myself, but maybe that helps. In any case I
suggest you move the bug to the server component.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>