Bug 439476

Summary: Ability to disable window rules with checkbox
Product: [Applications] systemsettings Reporter: Andrew Shark <ashark>
Component: kcm_kwinrulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: 4wy78uwh, gudvinr+kde, isma.af, kde, nate, plasma-bugs
Priority: NOR    
Version: 5.22.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.0
Sentry Crash Report:
Attachments: Painted variant of the gui where the checkboxes may be added

Description Andrew Shark 2021-07-04 14:25:53 UTC
Created attachment 139846 [details]
Painted variant of the gui where the checkboxes may be added

SUMMARY
Wnen I am creating window rules for applications, I often need to temporary disable and and then enable them, because I want to test how they behaves with new rules. These "wrong" applications may behave strange, and I want to frequently check if the problem exists when no rules applied. But for this, I need to delete the rule (let's call it window selections, or please tell me how it is named) or to enter it by clicking edit and remove specific rule.

This is rather annoying. It would be comfortable to enable or disable window selections by checkbox, see attached image of how it may look.

STEPS TO REPRODUCE
I am describing Davinci Resolve application, but you can imagine any other "wrong" application.
1. Open Davinci Resolve, make some dialog window appear, such as parameters for noise reduction effect. See that the window has no title and border, dislike it.
2. Create window rule to force it to show border. Additionally, add rules you like. In my case, I make it closable, and change its type to dialog. Save the rule.
3. In Davinci Resolve open noise reduction dialog again. Switch to another window such as web browser. See that dialog "disappeared" (went behind the main application window).
4. I want to temporary disable some rules, for example I want to remove closable rule and remove changing window type rule.

OBSERVED RESULT
No comfortable way to quickly enable/disable several rules.
Your options are to export the window selection to file, then delete the window selection from list, then after tests import again from file. Or to remove both rules from window selection, do tests, then specify rules again.

EXPECTED RESULT
Just tick the checkbox to toggle window selection enableness. With no need to respecifying rules.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2023-05-02 15:57:03 UTC
*** Bug 469136 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2024-04-09 22:39:06 UTC
*** Bug 483587 has been marked as a duplicate of this bug. ***
Comment 3 Ismael Asensio 2024-11-25 18:30:01 UTC
Git commit 1307cc4897aec44d096a2888aa243a8aa042cbba by Ismael Asensio.
Committed on 25/11/2024 at 18:17.
Pushed by iasensio into branch 'master'.

kcms/rules: Add ability to disable rules from the KCM
FIXED-IN: 6.3

M  +9    -0    src/kcms/rules/rulebookmodel.cpp
M  +1    -0    src/kcms/rules/rulebookmodel.h
M  +6    -0    src/kcms/rules/ui/main.qml

https://invent.kde.org/plasma/kwin/-/commit/1307cc4897aec44d096a2888aa243a8aa042cbba