Bug 490049

Summary: [Feature] Make it possible to test window rules
Product: [Plasma] kwin Reporter: Raman Gupta <rocketraman>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: fanzhuyifan, isma.af, JThundley, smowtenshi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Raman Gupta 2024-07-10 20:17:41 UTC
SUMMARY

Because Wayland does not allow applications to save and remember their window positions, I have been using Window Rules a lot more. However, one thing I've found difficult with Window Rules is validating / testing them.

First of all, positioning rules have to be set to "Force" in order to test a rule, when one really wants the rule to be "Initially Apply". So in order to test it, we have to change the position and screen to "Force", click "Apply", and then change it back.

Secondly, if a window rule does not trigger, we have no idea why. In a case I encountered, I figured out that an earlier window rule in the list was triggering instead, but the UI provides no feedback or indication that that was the case -- the only thing I saw as a user was that the window rule I was testing did not trigger.

It would be nice if window rules provided some UX that allowed users to test their rules. I recognize that this might actually be quite complex to implement. It may be easier to fix problems like https://bugs.kde.org/show_bug.cgi?id=15329 so that we don't have to rely on window rules so much in the first place.

Linux/KDE Plasma: 
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.6-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × 12th Gen Intel® Core™ i9-12900KS
Memory: 124.8 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: ASUS
Comment 1 fanzhuyifan 2024-08-04 07:11:03 UTC
Makes sense.
Comment 2 JT Hundley 2024-10-10 18:15:06 UTC
You put so elegantly into words the struggle I've gone through with window rules for years.