Fix keymap not correctly loading for the Ei backend#8121
Fix keymap not correctly loading for the Ei backend#8121nbolton merged 1 commit intodeskflow:masterfrom
Conversation
3e98f64 to
83e6346
Compare
nbolton
left a comment
There was a problem hiding this comment.
I can confirm, on master I hit this line on KDE client in src/lib/platform/EiKeyState.cpp:
LOG_DEBUG("failed to create xkb context: %s", strerror(errno));
This PR appears to fix this.
Edit: I'm pretty sure this fixes #7886 too...
|
Oh, cool to hear that it also solves the Caps issue. |
|
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe. |
Great news! Should the LOG_DEBUG be a warning or error instead? |
|
IMO, yes. |
I made it a warning in #8122 |
On some systems, the keymap file provided by Ei required to create the XKB context is not properly seeked to the start.
This will cause reading the file to fail (or, more accurately, just cause 0 bytes to be read), causing the keymap to just default to a US-keymap.
This PR fixes this, causing the correct keymap to be loaded.
See input-leap/input-leap#2158
Apparently it also fixes #7886
/claim #7886