Bug 459448 - Layout is changed when external monitor is unplugged and cannot be changed
Summary: Layout is changed when external monitor is unplugged and cannot be changed
Status: RESOLVED DUPLICATE of bug 450068
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.26.1
Platform: Other Other
: NOR normal
Target Milestone: 1.0
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-20 15:35 UTC by Iyán Méndez Veiga
Modified: 2022-11-08 23:06 UTC (History)
6 users (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 Iyán Méndez Veiga 2022-09-20 15:35:13 UTC
SUMMARY
The desktop layout is changed from "Desktop" to "Folder View" when I unplugged an external monitor. Later, if I try to change it back to "Desktop", it is not possible. Rebooting restores the "Desktop" layout back.


STEPS TO REPRODUCE
1. Choose "Desktop" layout
2. Connect external monitor
3. Unplug external monitor
4. Go to Configure Desktop and Wallpaper and try changing layout

OBSERVED RESULT
Layout is changed for no reason after unplugging the external monitor. This was happening to me in the past in the other direction (when connecting a new monitor, it would, by default, show the desktop in folder view) but it was always possible to change the setting. Now, if you go to "Configure Desktop and Wallpaper" by right clicking on the desktop, the layout shows that is in "Folder View". When selecting "Desktop", a message saying that "layout changes must be applied before other changes can be made" is shown with an "Apply Now" button. This button does not work. Using the general "Apply" and "Ok" buttons also doesn't change the layout.

EXPECTED RESULT
Layout should never be changed under any event (apart from the settings menu). If "Desktop" layout is selected, all new additional screens should use that layout. Perhaps in the future it would also make sense to add an additional button like "Apply to All", that could change settings to all screens at once (layout, wallpaper, etc.). And, in any case, it should be possible to change the layout at any time, even if right now is changed automatically under some circumstances.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: LENOVO
Product Name: 20XYCTO1WW
System Version: ThinkPad X1 Yoga Gen 6
Comment 1 Iyán Méndez Veiga 2022-09-20 15:37:29 UTC
This is different to Bug 459368 because checking `journalctl -p err -b` nothing crashed here. Also, when I experience the other bag, the wallpaper dissapears and I only see a black background, with the rest of the elements still working (panel, kickoff, etc.)
Comment 2 Fushan Wen 2022-09-21 06:23:42 UTC
Looks like it's 450068. There are some problems identifying outputs.

*** This bug has been marked as a duplicate of bug 450068 ***
Comment 3 Iyán Méndez Veiga 2022-09-21 06:37:40 UTC
(In reply to Fushan Wen from comment #2)
> Looks like it's 450068. There are some problems identifying outputs.

But that other bug was reported in Plasma 5.24 and I only noticed this issue after upgrading to Plasma 5.26 Beta. So something else must have changed as well. But yeah, probably this will be fixed with the other changes.
Comment 4 Fushan Wen 2022-09-26 01:55:23 UTC
There are other people reporting the same issue. Can you test if https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1781 fixes this bug? The patch is in 5.25 but not in 5.26
Comment 5 Iyán Méndez Veiga 2022-09-26 13:13:06 UTC
It doesn't fix it for me.
Comment 6 Fushan Wen 2022-09-26 13:15:04 UTC
Thank you for testing. Mark as reported now
Comment 7 David de Cos 2022-11-08 13:04:22 UTC
I can confirm this happens in 5.26.2 too, but only in Wayland. No such problem in X11.
In case it helps, my current system is:

Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 5.3.18-59.10-default (64-bit)
Graphics Processor: Mesa DRI Intel® HD Graphics 520
Comment 8 Nate Graham 2022-11-08 23:06:52 UTC
(In reply to Iyán Méndez Veiga from comment #3)
> (In reply to Fushan Wen from comment #2)
> > Looks like it's 450068. There are some problems identifying outputs.
> 
> But that other bug was reported in Plasma 5.24
It's been an issue forever; the approach Plasma takes to map containments to screens is just fundamentally broken. Ultimately this is caused by that issue.

*** This bug has been marked as a duplicate of bug 450068 ***