Bug 490049 - [Feature] Make it possible to test window rules
Summary: [Feature] Make it possible to test window rules
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-10 20:17 UTC by Raman Gupta
Modified: 2024-10-10 18:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.