Skip to content

FolderViewLayer.qml: Load the icon positions when geometry changes

Akseli Lahtinen requested to merge work/cherry-pick-ad116225 into Plasma/6.2

We need to load the icon positions when screen geometry changes, otherwise we risk using wrong geometry when screen is turned off or otherwise changed, then saving the icon positions of that geometry.

For example, when turning off screen in single-monitor setup, the resolution will change to 0x0. This then moves the icons around. Then opening the screen doesn't move the icons, so the icons stay in the 0x0 positions, and save them to the "normal" resolution.

This fixes it by loading the positions whenever the geometries change

BUG:493569

(cherry picked from commit ad116225)

ad116225 FolderViewLayer.qml: Load the icon positions when geometry changes

Co-authored-by: Akseli Lahtinen akselmo@akselmo.dev

Merge request reports

Loading