Bug 432349 - Switching from Wayland to X11 changes or resets the primary screen there
Summary: Switching from Wayland to X11 changes or resets the primary screen there
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.20.90
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords: usability, wayland-only
Depends on:
Blocks:
 
Reported: 2021-01-31 13:50 UTC by Claudius Ellsel
Modified: 2022-11-08 21:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudius Ellsel 2021-01-31 13:50:45 UTC
SUMMARY
When I switch from a Wayland to an X11 session the primary screen of X11 is not the one it used to be.

STEPS TO REPRODUCE
1. Have a multi monitor setup (I have a vertical one on the left and a horizontal one on the right. The right monitor is set as primary on X11).
2. Configure the monitors in X11 to work as written in 1.
3. Logout and login to a Wayland session
4. Due to another bug the vertical screen will have the wrong orientation on Wayland. Change that in KScreen to look normal (might be completely unrelated, though)
5. Logout and login to an X11 session

OBSERVED RESULT
The left monitor is now the primary screen

EXPECTED RESULT
The primary screen should stay as it was (the right screen)

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20210128
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.9-1-default
OS Type: 64-bit
Processors: 4 × Intel® Xeon® CPU E3-1225 v3 @ 3.20GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics P4600/P4700
Comment 1 Claudius Ellsel 2021-01-31 13:51:42 UTC
At some point in the past, but maybe only on a different distribution, this worked fine without this bug.
Comment 2 Nate Graham 2021-02-01 17:43:03 UTC
Can confirm/ The primary screen setting gets lose when using Wayland, presumably because Wayland has no concept of a primary screen. This means it should ignore that setting, not discard it.
Comment 3 Nate Graham 2022-11-08 21:53:17 UTC
This is fixed now that we have a Primary Screen concept on Wayland.