https://bugs.kde.org/show_bug.cgi?id=512381

--- Comment #23 from Akseli Lahtinen <[email protected]> ---
Git commit b7b492564f2d5a0229cee7b1504c616604816b25 by Akseli Lahtinen.
Committed on 05/12/2025 at 10:58.
Pushed by akselmo into branch 'Plasma/6.5'.

🍒 Cherrypick fix for desktop icons moving to other monitor on plasmashell
startup

**ScreenMapper: fix icon placement on multiple containments**

Move icons to disabled screens when screen doesn't exist. The screen
is most likely not yet initialized when Plasma is loading, so do the
same logic as when removing screen to preserve icon layout.

Change screen mapping when swapping screens.

Remove consistency map, because it disallows to place all icons on
screen with number different than 0.

(cherry-picked from commit c503531a9ceb2ae6af2cd6fca4c50c371ede0ffb )

**foldermodeltest: Add tst_initializeOnCorrectScreens**

This test checks that we initialize items on correct screens even
if all the screens are not available at initialization:
This can happen when some folderModels are started up before
after screenMapping is loaded.

When disabled screen comes back on, check that we move the items there.

(cherry-picked from commit 3218c5a71cfb233bf414dc36b5647fc180d8af5f )

M  +40   -0   
containments/desktop/plugins/folder/autotests/foldermodeltest.cpp
M  +1    -0    containments/desktop/plugins/folder/autotests/foldermodeltest.h
M  +9    -2    containments/desktop/plugins/folder/foldermodel.cpp
M  +6    -1    containments/desktop/plugins/folder/foldermodel.h
M  +61   -11   containments/desktop/plugins/folder/screenmapper.cpp
M  +8    -0    containments/desktop/plugins/folder/screenmapper.h

https://invent.kde.org/plasma/plasma-desktop/-/commit/b7b492564f2d5a0229cee7b1504c616604816b25

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to