Created attachment 141419 [details] kwin_x11 crash coredump After a kwin crash and auto-restart of plasmashell the window rules are not restored. Window rules have to be changed and re-applied through settings to be party restored. The shortcut-access rules are not restorable. As a result advanced workflows through window rules are not usable anymore. STEPS TO REPRODUCE 1. produce a kwin crash 2. retry keyboard shortcut defined in window rules 3. re-apply window rule settings (now rules party in effect; shortcuts still not working) OBSERVED RESULT Keyboard shortcut for window access/focus not working anymore EXPECTED RESULT All window rules restored into effect after plasmashell restart. SOFTWARE/OS VERSIONS plasmashell 5.22.5
I cannot fully reproduce this. After crashing kwin (kill -SEGV), it is auto-restored and most rule settings re-applied (for instance, the virtual desktop rule or color scheme). It's difficult to assure which of them are restored or not because they are checked and applied individually. The shortcuts rule though is not restored just as you describe. Which ones did you notice that are also not restored?
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1401
Right, the shortcut rule is my main observation. Also I belief that I noticed different positioning from my primary towards my secondary display. But the main issue is about the window shortcut access rule.
Git commit 07551a4487fb01dc2fd6481947f05c6546d9e743 by Ismael Asensio. Committed on 10/09/2021 at 11:00. Pushed by iasensio into branch 'master'. Workspace: Better check of registered client shortcuts Do not discard a shortcut immediately when it is already registered in KGlobalAccel, because there could be possible dangling shortcuts if they weren't properly cleaned-up (ex. after a crash). Instead we delay the check for conflicts with other client shortcuts to the second loop, which we know is up to date. FIXED-IN: 5.22.80 M +11 -6 src/useractions.cpp https://invent.kde.org/plasma/kwin/commit/07551a4487fb01dc2fd6481947f05c6546d9e743