| Summary: | Wrong keyboard layout in KDE application hotkeys when changing layout by means of the taskbar | ||
|---|---|---|---|
| Product: | [Unmaintained] plasma4 | Reporter: | Aurelien <aurelien.lourot> |
| Component: | widget-taskbar | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED MOVED | ||
| Severity: | minor | CC: | aurelien.lourot |
| Priority: | NOR | ||
| Version First Reported In: | 4.8.5 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Example (Part 1 of 4)
Example (Part 2 of 4) Example (Part 3 of 4) Example (Part 4 of 4) |
||
|
Description
Aurelien
2012-09-05 22:14:15 UTC
I've analysed the source code. Following happens: 1) When I configure two keyboard layouts in the system settings (one US, one FR) and press "Apply", the daemon kded_keyboard calls XkbHelper::runConfigLayoutCommand(), which runs "setxkbmap -layout us,fr". This seems correct. It creates two Xkb "groups". 2) When I toggle the layout by means of the plasma keyboard applet, X11Helper::setGroup() gets called, calling in turn XkbLockGroup(<display>, XkbUseCoreKbd, <new group>). This seems correct too. It toggles the Xkb group. Now three possibilities: 1) either there is a bug in Xkb, 2) or Xkb is not supposed to be used that way, 3) or the problem comes from Qt. As only KDE applications (e.g. KWrite) seem to be affected but not other applications (e.g. GEdit), I'd rather follow the third lead. I'll continue my investigations in that direction and update this ticket. Created attachment 76068 [details]
Example (Part 1 of 4)
Created attachment 76069 [details]
Example (Part 2 of 4)
Created attachment 76070 [details]
Example (Part 3 of 4)
Created attachment 76071 [details]
Example (Part 4 of 4)
The problem comes from QShortcut, which is used by KShortcut and KStandardShortcut. I have made a small example, with Qt only (without KDE), to prove that the problem doesn't come from KDE. See attachments. I'll create a Qt ticket, post its number here, and mark this one as resolved. Seems like this ticket is related: https://bugs.kde.org/show_bug.cgi?id=177654 |