nclarius / KWin-window-positioning-scripts

KWin scripts controlling window placement on multi-monitor setups
GNU General Public License v3.0
59 stars 14 forks source link

[Plasma WAYLAND] Always Open on Primary Screen / Always Open on Active Screen do not work #25

Open GrgMdmn opened 1 year ago

GrgMdmn commented 1 year ago

Hi ! I have a problem with my most left monitor where the games are automatically launched. My other monitor is set as primary, but the games I am launching always land on the first (bad) screen.

As a starting, I have tried installing "Always Open on Primary Screen" . When I do this, all the application (opening terminal, folder etc.) go to the bad screen, even if I open them from the second screen... It acts as if the first screen were the primary one, but I have checked in my settings that I have set the second screen as "primary"...

So, in order to bypass this problem, I have installed "Always Open on Active Screen", telling myself this feature would solve my problem. For each application I run from any screen, then the app window opens in the screen where my mouse is... It works for all application... Except the games that are still running on the first screen...! :/

Do you have any idea ? ^^'

I think the problem is on my side and not on the extension's, but maybe someone could help me here.

By the way, I am on linux mint, using kde plasma + wayland.

nclarius commented 1 year ago

Thanks for using my script!

From https://github.com/nclarius/KWin-window-positioning-scripts/issues/11#issuecomment-1091979196

I noticed this happens with XWayland windows which attempt to force remember their positions. This is the case for mGBA and CafeTran Espresso (my main work tool) for instance.

A possible workaround is to create a window rule with the property Ignore requested geometry set to Force: Yes. This can cause issues with dialogs also following the default window placement (e.g. Maximized), but then one can disable the dialog window type.

DarkShadow44 commented 8 months ago

I have the same issue, but with Konsole which supports Wayland. Actually, with the script it opens on the wrong screen, without the script it opens on the primary screen.