| Summary: | "Detect Window Properties" delay control resets to 0 when losing focus | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | ultimatebaka |
| Component: | kcm_kwinrules | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | isma.af, madness742, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/df6b40daa3a36b312f9ebf6ecaa96459d572ac34 | Version Fixed/Implemented In: | 6.5.91 |
| Sentry Crash Report: | |||
|
Description
ultimatebaka
2026-01-08 04:33:23 UTC
I can confirm. Workaround for the bug: Use the scroll wheel on the input box, instead of the arrows or typing it manually. Operating System: Fedora Linux 43 KDE Plasma Version: 6.5.5 KDE Frameworks Version: 6.22.0 Qt Version: 6.10.1 Kernel Version: 6.18.5-200.fc43.x86_64 (64-bit) Graphics Platform: Wayland Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor Memory: 64 GiB of RAM (62,4 GiB usable) Graphics Processor: AMD Radeon RX 7900 XTX Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7D75 System Version: 1.0 This looks like a regression in the QML component itself. I've been testing and, as the comments report, the spinbox's value resets to 0 when the text input loses focus. Which makes it not usable unless using the suggested workaround (just use the scroll wheel). In this case, the control never gains or loses the keyboard focus. A possible solution/workaround is to disable the numeric text input. This still allows to use the graphic arrows, the scroll wheel and the keyboard arrows to select the desired value. > 1. It seems like there is a conflict between the display formatting logic and the input validation/parsing logic in the KCM. The UI formats the raw integer into a localized string, but the validator likely fails to parse the "After X seconds" string back into an integer.
Never mind, you were totally right with this suspicion. There's a fix incoming
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8689 Git commit cdf9a428038e376e24802fb330cb6704384642ec by Vlad Zahorodnii, on behalf of Ismael Asensio. Committed on 22/01/2026 at 10:03. Pushed by vladz into branch 'master'. kcms/rules: Fix delayed detection spinbox resetting Along with the custom `textFromValue()` function, we need to also provide a matching `valueFromText()` function. Otherwise, the spinbox will use the default function and reset to the initial value (0) when losing focus. See https://qt-project.atlassian.net/browse/QTBUG-51114 FIXED-IN: 6.5.91 M +4 -0 src/kcms/rules/ui/RulesEditor.qml https://invent.kde.org/plasma/kwin/-/commit/cdf9a428038e376e24802fb330cb6704384642ec Git commit df6b40daa3a36b312f9ebf6ecaa96459d572ac34 by Ismael Asensio. Committed on 22/01/2026 at 14:11. Pushed by iasensio into branch 'Plasma/6.6'. kcms/rules: Fix delayed detection spinbox resetting Along with the custom `textFromValue()` function, we need to also provide a matching `valueFromText()` function. Otherwise, the spinbox will use the default function and reset to the initial value (0) when losing focus. See https://qt-project.atlassian.net/browse/QTBUG-51114 FIXED-IN: 6.5.91 (cherry picked from commit cdf9a428038e376e24802fb330cb6704384642ec) Co-authored-by: Ismael Asensio <isma.af@gmail.com> M +4 -0 src/kcms/rules/ui/RulesEditor.qml https://invent.kde.org/plasma/kwin/-/commit/df6b40daa3a36b312f9ebf6ecaa96459d572ac34 |