Bug 479280

Summary: Widgets are not restored to their initial positions after screen rotation in convertible laptops and tablets
Product: [Plasma] plasmashell Reporter: Archisman Panigrahi <apandada1>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: apandada1, nate, notmart, xaver.hugl
Priority: NOR    
Version First Reported In: 5.27.10   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Archisman Panigrahi 2024-01-02 02:05:08 UTC
SUMMARY

I have a convertible laptop that supports automatic screen rotation (Plasma 5.27.9, Arch Linux).

After rotating the screen from horizontal (normal) → vertical → horizontal, all my desktop widgets move to the left part of the screen, since the intermediate vertical orientation had less width.

I want the widgets to remember their initial positions when the screen was horizontal, after the orientation changes back to horizontal.



STEPS TO REPRODUCE
1. Place some widgets (like weather, color picker, sticky notes, etc.) on the screen.
2. In a laptop/tablet that supports screen rotation, rotate the screen from horizontal (initial orientation) -> vertical -> back to horizontal.

OBSERVED RESULT
Observe that all the widgets have lost their positions. 

EXPECTED RESULT
Widgets should be restored to their initial position when the screen is back to its initial orientation (horizontal), even though the widget positions changed in the positions in the intermediate vertical position.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Comment 1 Archisman Panigrahi 2024-01-02 03:39:23 UTC
There is a typo in the summary. The plasma version is 5.27.10 (however, the issue was also present in previous plasma versions)
Comment 2 Nate Graham 2024-02-15 23:46:35 UTC
Does the same thing happen to your desktop files and folders, or do they go back to their proper positions?
Comment 3 Archisman Panigrahi 2024-02-16 05:16:19 UTC
I don't know if some recent update fixed the issue.
But everything (both icons and widgets) is getting back to their proper positions now.

Previously, icons would go back to their old positions as far as I can remember, but widgets wouldn't.
Comment 4 Nate Graham 2024-02-16 16:04:09 UTC
Great, glad to hear it! Because that's what was supposed to be happening all along. :) Let us know here if it breaks again, though.