Summary: | Swapping Alt with Win not working when invoking plasma keyboard shortcuts (5.20 beta) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kglobalaccel | Reporter: | Schlaefer <openmail+kde> |
Component: | general | Assignee: | Fabian Vogt <fabian> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | fabian, kde, kde, nate, richarddong08, rrt |
Priority: | NOR | ||
Version: | 5.74.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kwindowsystem/commit/6e3d645d444073097e93520f047bb2321673119a | Version Fixed In: | 5.91 |
Sentry Crash Report: | |||
Attachments: | Alt win swap not working example with keyboard |
Description
Schlaefer
2020-09-18 13:01:17 UTC
Created attachment 131745 [details]
Alt win swap not working example with keyboard
KGlobalaccel is somehow not getting a change notification. It works after restarting it I do not know why but for me somehow after a while it got Notify events but the swapped behavior was still not correct. Did you ever find a fix for this? I never found a solution, no. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kwindowsystem/-/merge_requests/45 (In reply to Bug Janitor Service from comment #6) > A possibly relevant merge request was started @ > https://invent.kde.org/frameworks/kwindowsystem/-/merge_requests/45 ^ should fix this (it works here), feel free to test. Git commit 6e3d645d444073097e93520f047bb2321673119a by Fabian Vogt. Committed on 05/01/2022 at 17:06. Pushed by fvogt into branch 'master'. Avoid XKeycodeToKeysym in KKeyServer::initializeMods Xlib functions which work with keyboard mappings have a (Display) internal cache, which needs to be refreshed on mapping changes by calling X(kb)RefreshKeyboardMapping on change notify events. After Qt switched to XCB, that is no longer happening, and it's also not possible to get to the XEvent needed for triggering the refresh. Switch over to using the XCB equivalent and just load the symbols on every invocation. M +3 -1 src/platforms/xcb/kkeyserver.cpp https://invent.kde.org/frameworks/kwindowsystem/commit/6e3d645d444073097e93520f047bb2321673119a |