Work around an Ubuntu, Ibus or Qt issue regarding detecting the current keyboard layout.#14883
Work around an Ubuntu, Ibus or Qt issue regarding detecting the current keyboard layout.#14883ronso0 merged 11 commits intomixxxdj:2.5from
Conversation
…nt keyboard layout.
|
Looks like the Xfce pendant is I'll check if this works. |
|
Yep, this works for xfce |
|
IIUC parsing the output of |
|
localectl status does not follow the gnome settings. Mixxx does. |
|
So GNOME settings override |
|
Did you notice my Xfce fixup?
|
|
Now :-) |
|
and the 1st item reurned by It's not when the layout switched with
For my feeling, it's all pretty messed up in xfce, at least in 4.14 Since that woul donly affect users who a) switch layouts with b) the tools mentioned above, I'd say merge (with the |
|
Now it shall cover the "only one" keyboard case. Of #14797 we have however no fr_CH keyboard yet. The whole issue is a real mess. At one point we need to revive the keyboard controller idea, using the key codes, not what is printed when pressing the key. |
|
Haha, you wrote the commit message with en_US?
Please rewrite so it's easier to find 'keyboard' commits. Will test again in my VM soonish. |
… only one keyboard is installed
|
Done |
|
I have tested xkblayout-state and it works like a charm. It seems to have really the truth. I can imagine to put the related x11 calls into Mixxx. Unfortunatly it requires to link agains Line 3905 in 837f0ab The solution here works for X11 and Wayland, is however somwhat fragile. |
|
Good news! |
|
I prefere the idea to do the X11 API calls directly. |
Ah okay, sorry I overlooked / misunderstood that earlier (on mobile, in a hurry). Btw I wonder why these issues are noticed just now, or is it that only recent Ubuntu(-ish) distros expose this issue? |
|
That's an interesting question. I am sure it worked with older Ubuntu version and QT5, but I have no interest to track that down. |
|
Works now. First it ties to via X11 XWayland. That works even if Mixxx itself is running with Wayland. If XWayland is not installed it falls back to |
|
Great, thanks! |
ronso0
left a comment
There was a problem hiding this comment.
nothing special. will try to review the Xkb function soon.
Can you add that as comments to |
|
Comment added. |
|
Can we now merge this? This should be really part of 2.5.2 |
|
If you're confident, go ahead. Else, I'd like to do one more test, and take a look at the Xkb calls. Which I can do tomorrow night finally. |
|
I can't test the 2.5 build in the 24.04 VM, so I created ronso0#94 against 2.6 to get a build. |
|
Works nicely in 24.04 👍 |
|
XCloseDisplay(pDisplay) is in place. Thank you for testing. |
|
/softfix I am curious to see if this now actualy did an autosquash |
ce24c87 to
a354bd3
Compare
|
It worked, but CI wasn't triggered. |
|
Edited the initial description. |
|
All green finally. |
|
Great, thank you! |
Since we can't wait for an upstream solution this is a workaround.
#14838 #14797