Bug 518371 - Clicking keyboard icon does not send the XKB group ID to Wayland input-method protocol
Summary: Clicking keyboard icon does not send the XKB group ID to Wayland input-method...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 6.6.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-31 12:25 UTC by fujiwara
Modified: 2026-06-18 16:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fujiwara 2026-03-31 12:25:11 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
I'd like to know the current XKB group ID via the Wayland input-method but cannot do it.

STEPS TO REPRODUCE
1. Configure XKB group layouts for the default session. E.g. "us,de" in /etc/vconsole.conf and /etc/X11/xorg.conf.d/00-keyboard.conf
2. Log into the Plasma Wayland session
3. Keymap icon shows the firsts XKB layout in the Plasma panel . E.g. "us"
4. Click the keyboard icon and the icon shows the next layout. E.g "de"

OBSERVED RESULT
The Wayland client signal wl_keyboard_listener->modifiers() is not called.

EXPECTED RESULT
The Wayland client signal wl_keyboard_listener->modifiers() is called with the updated group ID.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora 44/Plasma Wayland
KDE Plasma Version: 6.6.1
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION

When I switch the XKB group layout with a shortcut key of the XKB option key likes "grp:toggle", the signal is called with the updated group ID and the keyboard icon also shows the updated layout.
Comment 1 Rodrigo 2026-06-18 15:31:14 UTC
I can confirm this bug is causing a major user-facing issue in Fedora 44 / Plasma 6.7 (Wayland). 

Because KWin fails to update the XKB group ID/modifiers correctly via the Wayland input-method protocol, IBus completely breaks dead keys (accents/tildes) in Chromium/Electron-based applications running natively on Wayland (such as Brave Browser, Discord, VS Code, etc.).

Symptom:
When typing in Brave under a Wayland session with IBus active, pressing an accent key (e.g., "ยด") followed by a vowel renders only the vowel (the accent disappears completely). The IBus panel window briefly flashes and swallows the keystroke due to the missing modifier synchronization described by the reporter.

Impact:
This completely ruins the typing experience for users of languages that rely heavily on dead keys (like Spanish, Latvian, French, etc.) when using Web/Electron apps, unless they force XWayland via flags or switch to alternative input methods like Fcitx5.

Please consider giving this issue some priority, as it silently breaks text input in mainstream web browsers.
Comment 2 fujiwara 2026-06-18 15:49:31 UTC
> IBus completely breaks dead keys (accents/tildes) in Chromium/Electron-based applications running natively on Wayland (such as Brave Browser, Discord, VS Code, etc.).

It's a different issue. This issue is relative with the normal KDE applications likes kwrite, konsole.
Comment 3 Rodrigo 2026-06-18 16:33:12 UTC
(In reply to fujiwara from comment #2)
> > IBus completely breaks dead keys (accents/tildes) in Chromium/Electron-based applications running natively on Wayland (such as Brave Browser, Discord, VS Code, etc.).
> 
> It's a different issue. This issue is relative with the normal KDE
> applications likes kwrite, konsole.


You are right! I misidentified the root cause due to the similarities in how the input method protocol was failing. I don't think it is worth opening another bug report though. I have since switched my system to Fcitx5, which completely resolves the dead keys issue in Chromium/Brave under Plasma 6 Wayland. 

Thanks again for your hard work on the IBus patches!