*** 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.
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.
> 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.
(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!