Bug 442608 - Value of Primary Monitor setting reset after using wayland session and going back to X11 session
Summary: Value of Primary Monitor setting reset after using wayland session and going ...
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.22.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-17 16:36 UTC by d3coder
Modified: 2022-11-08 22:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description d3coder 2021-09-17 16:36:40 UTC
SUMMARY
I have 2 monitors, right monitor is primary one on X11. After i used wayland, my primary monitor on X11 was changed to left monitor.

STEPS TO REPRODUCE
1. Have right monitor as primary one on X11
2. Open Wayland session
3. Log out
4. Open X11 session

OBSERVED RESULT
Primary monitor changed

EXPECTED RESULT
Primary monitor not changed


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.3-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 1 deadite66 2021-09-19 06:49:38 UTC
Having the same problem with 5.22.90, panel and icons keep switching to my small side monitor under wayland instead of staying on my 27" 1440p monitor.
Comment 2 Vlad Zahorodnii 2021-09-20 08:51:09 UTC
On Wayland, there's no concept of primary monitor so it's up to the desktop shell where the panel should be.

Can you post the output `qdbus org.kde.KWin /KWin supportInformation` and indicate what output has to be primary?
Comment 3 d3coder 2021-09-20 08:59:13 UTC
Primary monitor config resets in X11 session after i open wayland session and then open X11 session.

1. Start X11 session, configure your widgets and primary monitor
2. Start Wayland session, widgets and shell are in proper places, like in X11 session
3. Start X11 session - widgets and shell swapped their position (left monitor becomes right, and vice-versa)
I have to change primary monitor in X11, then it looks properly.
Comment 4 Nate Graham 2021-09-21 21:51:11 UTC

*** This bug has been marked as a duplicate of bug 442158 ***
Comment 5 Nate Graham 2021-09-21 21:53:12 UTC
Actually not a duplicate, sorry.

It seems reasonable that the X11 primary monitor setting should be remembered rather than reset after you move to Wayland. Yes, Wayland has no Primary Monitor setting, but that's no excuse for discarding the user's choice for that setting on X11.
Comment 6 Nate Graham 2022-11-08 22:20:58 UTC
Generically fixed now that we have  Primary Monitor setting on Wayland.

Any additional issues with this will be caused by Bug 365865.