| Summary: | KWin Window Rules for Virtual Desktop show as "All Desktops" despite it actually being the correct (last-set) desktop choice. (X11 Only) | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Hammad R <quickishfm> |
| Component: | kcm_kwinrules | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | carmanaught, isma.af, miranda, nate, plasma-bugs-null, quickishfm |
| Priority: | NOR | Keywords: | X11-only |
| Version First Reported In: | 6.0.2 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/3088d941c646b63ccea66669ef52585771b9c79c | Version Fixed/Implemented In: | 6.3.3 |
| Sentry Crash Report: | |||
|
Description
Hammad R
2024-03-21 13:57:10 UTC
Linux ver 6.8.1-arch1-1 KDE Plasma ver 6.0.2 KDE Frameworks ver 6.0.0 QT version 6.6.2 Graphics Platform X11 I can confirm this bug. Still exists in 6.0.4 Kernel: 6.8.7-zen1-zen KDE Plasma version: 6.0.4 KDE Frameworks version: 6.1.0 QT version: 6.7.0 Graphics Platform: X11 This bug is present in 6.0.5 as well. Operating System: EndeavourOS KDE Plasma Version: 6.0.5 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.1 Kernel Version: 6.9.2-arch1-1 (64-bit) Graphics Platform: X11 This actually only occurs on X11. I recently got Wayland working (by use of the modeset nvidia-drm kernel parameter) and this bug does not happen on Wayland. On Wayland, opening the rule correctly shows it as Desktop 1. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7220 Adding the x11-only keyword Git commit 810181a01bd2153e2bdd050c1da1dd49c580d4c4 by Ismael Asensio. Committed on 25/02/2025 at 18:07. Pushed by iasensio into branch 'master'. kcms/rules: Fix showing selected VD on X11 Th Rules KCM treats Virtual Desktops differently: - on wayland is a QStringList and a multiple choice `OptionList` - on X11 is a QString and a single choice `Option` The underlaying setting, however, is common and always a QStringList. This made the check against the possible VDs fail, so the KCM on X11 would resort to show the default value: "All Virtual Desktops". It was purely a visual failure in how the property was shown, not on how the rules were saved or applied. Convert the value to a `QString` in case we have a single `Option` to fix the issue. FIXED-IN: 6.3.3 M +6 -1 src/kcms/rules/ruleitem.cpp https://invent.kde.org/plasma/kwin/-/commit/810181a01bd2153e2bdd050c1da1dd49c580d4c4 Git commit 3088d941c646b63ccea66669ef52585771b9c79c by Ismael Asensio. Committed on 25/02/2025 at 19:00. Pushed by iasensio into branch 'Plasma/6.3'. kcms/rules: Fix showing selected VD on X11 Th Rules KCM treats Virtual Desktops differently: - on wayland is a QStringList and a multiple choice `OptionList` - on X11 is a QString and a single choice `Option` The underlaying setting, however, is common and always a QStringList. This made the check against the possible VDs fail, so the KCM on X11 would resort to show the default value: "All Virtual Desktops". It was purely a visual failure in how the property was shown, not on how the rules were saved or applied. Convert the value to a `QString` in case we have a single `Option` to fix the issue. FIXED-IN: 6.3.3 (cherry picked from commit 810181a01bd2153e2bdd050c1da1dd49c580d4c4) Co-authored-by: Ismael Asensio <isma.af@gmail.com> M +6 -1 src/kcms/rules/ruleitem.cpp https://invent.kde.org/plasma/kwin/-/commit/3088d941c646b63ccea66669ef52585771b9c79c |