Bug 494479

Summary: Setting a window to initially open on a specific screen is ignored.
Product: [Plasma] kwin Reporter: JT Hundley <JThundley>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: al.neodim, isma.af
Priority: NOR Keywords: X11-only
Version First Reported In: 6.2.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: These rules with apply initially do not work.

Description JT Hundley 2024-10-10 19:15:16 UTC
Created attachment 174647 [details]
These rules with apply initially do not work.

SUMMARY
Setting a window to initially open on a specific screen is ignored.

STEPS TO REPRODUCE
1. Create a window rule and set the property Screen to Apply initially and choose a screen (I used 1)
2. Restart the application with the rule to test the rule.

OBSERVED RESULT
The window continues to open on a different monitor than the expected one.

EXPECTED RESULT
I expected the window to initially open on the screen it was instructed to initially open on.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-zen1-1-zen (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I've tested that I have the screen number correct by changing "Apply initially" to "Force". This does properly force the window to be on the screen I want, however I can't then move the window to another screen as it's forced to be on that one. I also tried to Force Ignore requested geometry which doesn't help. This window rule was set and working perfectly before I updated KDE this morning. I also deleted and recreated the rule from scratch which didn't help.
Comment 1 JT Hundley 2025-02-17 21:43:19 UTC
This issue is still present in:
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Comment 2 Alexad 2025-02-18 16:18:24 UTC
Have similar issue but for "Virtual desktop". Even if I set "force" window to desktop "2", desktop 2 automatically resets to "All desktops" after reopening system settings. Upon reboot this window rule doesn't apply!

Everything was working fine in 23.10. I just don't get why every update gets these basic features broken. This is nonsense.
Comment 3 JT Hundley 2025-02-18 18:40:53 UTC
Computer software is hard. Run Debian if you don't like bleeding edge software :)
Comment 4 Alexad 2025-02-18 20:08:21 UTC
(In reply to Alexad from comment #2)
> Have similar issue but for "Virtual desktop". Even if I set "force" window to desktop "2", desktop 2 automatically resets to "All desktops" after

Weird, but after some tinkering around somehow it started to work again. The "Virtual desktop" though still  says "All desktop" despite all affected windows being moved to spefied earlier desktop "2".


> Computer software is hard. Run Debian if you don't like bleeding edge software :)
It's easy to stop making breaking existing, well-working software. I still don't get why devs overhauled spectacle and removed old but polished desktop/windows preview effect. The problem is that newer KDE software over the last 2 years tends to bring too many workflow-breaking changes. And I can assure you - it's actually edge-bleeding software I've updated to just recently.
Comment 5 JT Hundley 2025-07-12 19:24:50 UTC
This issue is still present in Plasma version 6.4.2.