| Summary: | Window rules: Force app to specific screen don't work with Wayland | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | wmf <itf2> |
| Component: | rules | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | atosser, Deckweiss75, isma.af, jidec, kde, mte90net, nate, popguz, s_chriscollins |
| Priority: | NOR | Keywords: | wayland-only |
| Version First Reported In: | 6.0.1 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=508644 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | WindowRuleGamescope | ||
|
Description
wmf
2024-03-14 01:38:44 UTC
I have the same issue with Dolphin, konsole, system settings... pretty much everything starts on the wrong screen no matter what settings I change on Wayland session. For me it also does not work with X11. Same for me on Fedora 40 with Wayland: on single screen mode or dual screen mode, windows are not placed following the rules. Same for me on archlinux. Here is the kscreen-doctor output: https://pastebin.com/3han58A9 As you can see there I have 2 displays. DP-1 is the "primary monitor", DP-2 is the "secondary monitor" a vertical 4k screen. My issue: I have steam opened on the secondary. I start a game with gamescope. It starts on the secondary monitor, because thats where the mouse is. I want all games to start on the primary monitor of course. So I created a window rule (see screenshot) and it changed nothing about the behaviour. No matter what I put into the screen field - when I export the rule it says "screenrule=2" and doesn't seem to contain the display number. https://pastebin.com/EvfucwX3 When the window is already open and I change the window rule and click apply, the window moves to the correct monitor. But when the game is started anew, it is always on the wrong one, because it seems to strictly follow the mouse. Created attachment 171009 [details]
WindowRuleGamescope
The same window rule seemingly works for me on x11. Or maybe x11 has some other mechanism which makes the game window spawn on the primary screen. Any news? I still have the same issue. I have been experiencing this issue for months. I have not been able to track it down. I do have some observations. Sometimes it happens after the screen turns off. When it comes back it's almost like it gets reconnected and becomes treated like a new screen and re-enumerated. This is a wild guess with little more than my usage to back it. The primary issue is there and I am changing status to confirmed. I can confirm with the latest version 24.12 doesn't work with wayland. Also the Prorperty window detection doesn't share what is the Display number where the window is. |