Bug 456546

Summary: Compose key = Right Alt has no effect when using non-primary keyboard layout
Product: [Plasma] kwin Reporter: Rose Hudson <rose>
Component: inputAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: minor CC: kde
Priority: NOR    
Version First Reported In: 5.25.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rose Hudson 2022-07-10 12:03:05 UTC
*This occurs on both Wayland and X11 Plasma sessions, so maybe the problem lies somewhere upstream.*

STEPS TO REPRODUCE
1. Set keyboard layout to English (UK, Colemak-DH)
2. Enable Position of Compose Key -> Right Alt in advanced keyboard settings
3. Try to use the compose key

OBSERVED RESULT
Right Alt functions as normal, as a modifier to access alternate characters

EXPECTED RESULT
Right Alt functions as compose key

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Compose key = Right Alt works fine on qwerty.
Comment 1 Rose Hudson 2023-02-02 15:32:17 UTC
Turns out that moving colemak-dh to the top of the layouts list made the compose key work.
Comment 2 David Edmundson 2023-05-04 08:27:57 UTC
>*This occurs on both Wayland and X11 Plasma sessions, so maybe the problem lies somewhere upstream.*

Sorry for the delay. You're absolutely right, on X11 we don't handle compose keys directly, the X server takes care of this. 

The relevant upstream is xkbcommon
Comment 3 Rose Hudson 2023-05-08 18:12:00 UTC
> Sorry for the delay. You're absolutely right, on X11 we don't handle compose
> keys directly, the X server takes care of this. 

Is xkbcommon responsible in the Wayland session too?