Bug 477951

Summary: "apply initially" window rules only applies first time window opened
Product: [Plasma] kwin Reporter: Linus Kardell <linus.kardell>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: isma.af
Priority: NOR    
Version First Reported In: 5.27.9   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: rules

Description Linus Kardell 2023-12-02 21:37:04 UTC
Created attachment 163793 [details]
rules

SUMMARY
I have some window rules set up set up for Firefox picture-in-picture as shown in the screenshot, as a workaround for Firefox not being able to set those properties on Wayland. However, when set to "apply initially", they only they only apply the first time you open picture-in-picture, not subsequent times. The properties will apply again once Firefox is restarted, but only once. This issue does not happen if you set the properties to "force".

STEPS TO REPRODUCE
1. Set up window rules like in the screenshot (window title would differ depending in language)
2. Open picture-in-picture
3. Close picture-in-picture
4. Open picture-in-picture again

OBSERVED RESULT
The properties only applied to the first picture-in-picture window

EXPECTED RESULT
The properties applies to all matching windows

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231110
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.6.1-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
Memory: 29.3 Gibyte of RAM
Graphics Processor: AMD Radeon Vega 10 Graphics
Manufacturer: Acer
Product Name: Aspire A315-41
System Version: V1.18