Bug 466078 - Screen configuration is ignored and causes weird behaviour of windows
Summary: Screen configuration is ignored and causes weird behaviour of windows
Status: REPORTED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.27.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-19 12:35 UTC by Riccardo Robecchi
Modified: 2023-03-01 12:02 UTC (History)
3 users (show)

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


Attachments
Screenshot of the issue (1.40 MB, image/jpeg)
2023-02-19 12:35 UTC, Riccardo Robecchi
Details
xrandr -q output (1.68 KB, text/plain)
2023-02-19 16:29 UTC, Riccardo Robecchi
Details
kscreen-docktor -o output (2.11 KB, text/plain)
2023-02-19 16:32 UTC, Riccardo Robecchi
Details
kscreen-console output (14.24 KB, text/plain)
2023-03-01 12:02 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2023-02-19 12:35:56 UTC
Created attachment 156485 [details]
Screenshot of the issue

SUMMARY
I have a laptop connected to a USB-C dock, which is then connected to two vertically-arranged monitors. The laptop's screen is duplicated on one of the monitors. While trying to arrange the monitors horizontally to test widget behaviour (due to bug 465917), I noticed that the screen configuration was ignored and led to a broken setup, with windows placed off the actual screen area and the screens staying with a vertical arrangement.

STEPS TO REPRODUCE
1. Change vertical arrangement of monitors to horizontal in the KCM.

OBSERVED RESULT
The screens stay arranged vertically, but windows are placed outside of the actual screen area.

EXPECTED RESULT
The screens are actually arranged as set in the KCM.

SOFTWARE/OS VERSIONS
Linux: KDE neon
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Riccardo Robecchi 2023-02-19 12:36:51 UTC
I forgot to mention I am using X11 on a setup with a Radeon Vega 8 GPU and Linux 5.19.5.
Comment 2 David Edmundson 2023-02-19 13:09:09 UTC
Please include output of "xrandr -q" and "kscreen-doctor -o" after applying the change
Comment 3 Riccardo Robecchi 2023-02-19 16:29:41 UTC
Created attachment 156502 [details]
xrandr -q output
Comment 4 Riccardo Robecchi 2023-02-19 16:32:09 UTC
Created attachment 156503 [details]
kscreen-docktor -o output

Here are the requested command outputs.
Comment 5 Nate Graham 2023-02-22 03:57:35 UTC
Window positioning is done by KWin; moving the bug there.
Comment 6 Riccardo Robecchi 2023-02-22 08:27:23 UTC
(In reply to Nate Graham from comment #5)
> Window positioning is done by KWin; moving the bug there.

Sorry, Nate, but I have to disagree here - the main issue is with the screens not being positioned according to the settings, not with the positioning of windows: the latter is just a consequence of the former. Just look at the screenshot: the screens should be arranged horizontally, but they are not and the most likely culprit is KScreen, not KWin. I'm bringing this back to KScreen.
Comment 7 David Redondo 2023-02-23 15:22:35 UTC
Sorry to request another thing but could you attach the output of
kscreen-console monitor
while you keep it running while changing the layout unsuccessfully?
Comment 8 Riccardo Robecchi 2023-03-01 12:02:33 UTC
Created attachment 156866 [details]
kscreen-console output

(In reply to David Redondo from comment #7)
> Sorry to request another thing but could you attach the output of
> kscreen-console monitor
> while you keep it running while changing the layout unsuccessfully?

Here is the output as requested. It includes the change to the new configuration, as well as reverting back to the original one.