Bug 512027 - Apply initially window rule not applied on compositor restart
Summary: Apply initially window rule not applied on compositor restart
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-13 10:53 UTC by Kai Uwe Broulik
Modified: 2025-12-15 17:44 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2025-11-13 10:53:30 UTC
SUMMARY
A window rule with "Apply initially" seems to not be applied when KWin is restarted and the app reconnects.

It is applied when the app is started normally

STEPS TO REPRODUCE
1. Set a window rule to put a window on a certain virtual desktop and choose "Apply initially"
2. Start the Qt app and notice how it shows up on the correct desktop
3. Kill kwin and have it restart

OBSERVED RESULT
The window shows on the current virtual desktop

EXPECTED RESULT
The window shows on the virtual desktop that the window rule says it should

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: git master as of 2025-11-13
Qt Version: 6.9.2

ADDITIONAL INFORMATION
Of course only works with Qt apps that can survive a compositor restart. I only tested "virtual desktop" rule.
Comment 1 Kai Uwe Broulik 2025-12-15 17:44:03 UTC
Also affects the "no border" rule, so seems that generally the rules are not evaluated in this case.