I want an application to stay on my main monitor. I created a Window Rule with the property "Screen", a value of "0" and the "Force" option.
When I apply this rule manually (during creation), if the application is on my second monitor, it is properly moved to my main monitor ("0").
When I close my main monitor, the application is moved to my second monitor, this is ok. But when I open back my main monitor, the rule is not triggered and the application is not moved to my main monitor as I want it to be.
STEPS TO REPRODUCE
1. Have two monitors. My main monitor ("0") is a Dell external monitor and my second is the monitor of my laptop.
2. Create a Window Rule with the property "Screen", a value of "0" and the "Force" option for a specific application.
3. Close the main monitor. The application is move to the second monitor. This is ok.
4. Reopen the main monitor. The application is not moved back to the main monitor.
The application specified in the rule is not moved to the main monitor.
The application specified in the rule is moved to the main monitor.
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1840
*** This bug has been marked as a duplicate of bug 409979 ***