Bug 427068 - [wayland] Xwayland apps don't respect "mouse selects current screen"
Summary: [wayland] Xwayland apps don't respect "mouse selects current screen"
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (other bugs)
Version First Reported In: 5.19.90
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-28 13:26 UTC by bartek1516
Modified: 2022-11-08 21:24 UTC (History)
1 user (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 bartek1516 2020-09-28 13:26:37 UTC
SUMMARY
In my 3 monitor setup xwayland apps always start on the left screen. This produces multiple problems. The most annoying one is steam games. They always start on the most left monitor. Even if a game has a setting to change the monitor e.g. "Battlerite" it doesn't. Apps like spotify and others also start on the most left screen.
On X11 there's a setting for a main monitor that the games will run from. From what I've heard it doesn't make sense on wayland from technical point of view.
But from user point of view I can't run games on the monitor I want + apps start on the most left monitor that could be TV for example which can be annoying.
Wayland apps, such as kate or firefox in wayland mode respect that setting and start on monitor that mouse is on.

STEPS TO REPRODUCE
1. Start Spotify(any xwayland app)

OBSERVED RESULT
App starts on the most left screen

EXPECTED RESULT
App should start on the screen that mouse is.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Arch Linux
ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-11-08 21:24:08 UTC
There is now a "Primary Screen" setting on Wayland that XWayland apps will respect.

In an ideal world, apps would never try toopen on the primary screen and would instead let the window manager position their windows according to its own consistent rules (one of which could be "always open new windows on the primary screen").