Summary: | Unable to bind / use the calculator key in plasma 6 on Wayland | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | qlum <qlumreg> |
Component: | kcm_keys | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | accounts, ase1590, brunopitrus, dashonwwIII, davesyaan, ddascalescu+kde, dougshaw77, fanzhuyifan, kde, kde, liemaeu, nate, peter.steger, seastland, the.real.samuel.jimenez, xeeynamo |
Priority: | HI | Keywords: | qt6, wayland |
Version: | 5.91.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=257900 https://bugreports.qt.io/browse/QTBUG-121713 |
||
Latest Commit: | https://invent.kde.org/plasma/kglobalacceld/-/commit/acb1d829ae63d9c5246d499b287a9304b504b50d | Version Fixed In: | Plasma 6.0 with Qt 6.6.3 or later |
Description
qlum
2023-12-23 12:57:16 UTC
*** Bug 479232 has been marked as a duplicate of this bug. *** *** Bug 478283 has been marked as a duplicate of this bug. *** As I mentioned in the bug I filed that was marked as a duplicate of this one, my calculator key works in an X11 session, but not in a Wayland session. I cannot assign the calculator key to shortcuts on either X11 or wayland. On x11 when I press it kcalc shows up, but does not on wayland. The problem seems to be `QXkbCommon::keysymToQtKey` returning 0 when keysym is `0x1008FF1D` (this is called in `Xkb::toQtKey` in kwin/src/xkb.cpp) In my setup, the problem is caused by XkbCommon::keysymToQtKey mapping XF86XK_Calculater but not XF86XK_Calculator, which are different keys. Should I try to upstream a patch to Qt? Filed upstream bugreport to Qt: https://bugreports.qt.io/browse/QTBUG-121713 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kwindowsystem/-/merge_requests/145 A possibly relevant merge request was started @ https://invent.kde.org/utilities/kcalc/-/merge_requests/77 A possibly relevant merge request was started @ https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/42 Git commit 03aea8cbe369689503a89fafb75465b79f19a8b4 by Yifan Zhu. Committed on 01/02/2024 at 21:22. Pushed by fanzhuyifan into branch 'master'. kkeyserver: use new XF86keysym.h & qxcbcommon.cpp Include the latest XF86keysym.h. Update the key mappings to match the latest qxcbcommon.cpp in Qt6. M +608 -275 src/kkeyserver.cpp https://invent.kde.org/frameworks/kwindowsystem/-/commit/03aea8cbe369689503a89fafb75465b79f19a8b4 The Qt patch should be included in the upcoming Qt 6.6.3, and Qt 6.7. The remaining problems on KDE's side should be fixed by the MRs mentioned above. Git commit 254efa0a59d19e4133d5c2c95722cceb472e0b4c by Yifan Zhu. Committed on 01/02/2024 at 21:25. Pushed by fanzhuyifan into branch 'master'. plugins/xcb/kglobalaccel_x11: use new KKeyServer API To correctly handle Qt::Key_Calculator corresponding to both XF86Calculator and XF86Calculater. M +11 -3 src/plugins/xcb/kglobalaccel_x11.cpp https://invent.kde.org/plasma/kglobalacceld/-/commit/254efa0a59d19e4133d5c2c95722cceb472e0b4c Git commit acb1d829ae63d9c5246d499b287a9304b504b50d by Yifan Zhu. Committed on 01/02/2024 at 23:12. Pushed by fanzhuyifan into branch 'Plasma/6.0'. plugins/xcb/kglobalaccel_x11: use new KKeyServer API To correctly handle Qt::Key_Calculator corresponding to both XF86Calculator and XF86Calculater. (cherry picked from commit 254efa0a59d19e4133d5c2c95722cceb472e0b4c) M +11 -3 src/plugins/xcb/kglobalaccel_x11.cpp https://invent.kde.org/plasma/kglobalacceld/-/commit/acb1d829ae63d9c5246d499b287a9304b504b50d Git commit 2a9dd8f8c0401521a8e7c1928e8fa8b03faf8ffa by Yifan Zhu. Committed on 01/02/2024 at 23:14. Pushed by fanzhuyifan into branch 'master'. Change default shortcut to Calculator Qt6 no longer maps the calculator key to Key_Launch1 M +1 -2 org.kde.kcalc.desktop https://invent.kde.org/utilities/kcalc/-/commit/2a9dd8f8c0401521a8e7c1928e8fa8b03faf8ffa *** Bug 480955 has been marked as a duplicate of this bug. *** *** Bug 482796 has been marked as a duplicate of this bug. *** What releases did this fix make it into? I can't actually tell. (In reply to Nate Graham from comment #18) > What releases did this fix make it into? I can't actually tell. On our end, the plasma 6 mega-release. On Qt's end, the upcoming 6.6.3 and 6.7. The Qt patch was not included in 6.6.2. Thanks! *** Bug 483105 has been marked as a duplicate of this bug. *** Testing it again on plasma 6.0.1 and qt 6.7 I can confirm that I can bind the calculator key again. However, I do need to manually set the binding again, as the old binding will remain non-functional. (In reply to qlum from comment #22) > Testing it again on plasma 6.0.1 and qt 6.7 I can confirm that I can bind > the calculator key again. > However, I do need to manually set the binding again, as the old binding > will remain non-functional. Plasma 6.0.1, Qt 6.7.7-1 on openSUSE Tumbleweed/X11 here, still doesn't work for the calculator key of my Ducky One keyboard. (In reply to Richard Knausenberger from comment #23) > (In reply to qlum from comment #22) > > Testing it again on plasma 6.0.1 and qt 6.7 I can confirm that I can bind > > the calculator key again. > > However, I do need to manually set the binding again, as the old binding > > will remain non-functional. > > Plasma 6.0.1, Qt 6.7.7-1 on openSUSE Tumbleweed/X11 here, still doesn't work > for the calculator key of my Ducky One keyboard. I don't think currently there is Qt 6.7.7 -- Qt 6.7 is still in rc1. *** Bug 484142 has been marked as a duplicate of this bug. *** *** Bug 433645 has been marked as a duplicate of this bug. *** *** Bug 485180 has been marked as a duplicate of this bug. *** |