Bug 477951 - "apply initially" window rules only applies first time window opened
Summary: "apply initially" window rules only applies first time window opened
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.27.9
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-02 21:37 UTC by Linus Kardell
Modified: 2023-12-02 21:37 UTC (History)
1 user (show)

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


Attachments
rules (55.65 KB, image/webp)
2023-12-02 21:37 UTC, Linus Kardell
Details

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