*** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports Please remove this comment after reading and before submitting - thanks! *** SUMMARY STEPS TO REPRODUCE 1. On the desktop, drag a file and drop it somewhere else on any empty region of the desktop OBSERVED RESULT Usually the icon will snap to the nearest available grid slot to where you dropped it. But sometimes, utterly randomly, it will go back to where it was. And sometimes, even, it will move to another apparently random position that is neither where you picked it from, nor where you dropped it (or any of the neighbors). I think it might be some of the most recent positions the icon recently was in. EXPECTED RESULT The icon should always, 100% of the times, stay where you drop it (meaning the nearest available slot), unless you dropped it over something where it can't be dropped, if such thing exists. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Kernel Version: 6.6.54-2-MANJARO (64-bit) Graphics Platform: Wayland Processors: 12 × 12th Gen Intel® Core™ i7-1255U Memory: 15.3 GiB of RAM Graphics Processor: Mesa Intel® Graphics Manufacturer: ASUSTeK COMPUTER INC. Product Name: Vivobook_ASUSLaptop X1502ZA_F1502ZA System Version: 1.0
This was fixed in Plasma 6.2.
Git commit cc44615b34dacc2a4acfdc82de885c943318a7f6 by Akseli Lahtinen. Committed on 06/11/2024 at 16:30. Pushed by akselmo into branch 'master'. Refactor icon positioner saving and loading The icon positioner saving and loading is handled by QML, which makes it a bit difficult to work with the logic in positioner CPP files. This change does the following: - Explicitly save only on user interactions - Moved the save and load of config to positioner.cpp - Easier debugging of the saving and loading functions - Still uses the JSON style of save/loading like the old one - Technically should be compatible with the old config, which was also JSON. - Makes positionerApplet accessible from FolderView qml - Various checks for checking if screen is enabled or not to avoid doing unnecessary work when screen is off - A lot of fixes to avoid any racing conditions - Removed any timers - Added various unit tests Alternative to https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2603 Related: bug 482875, bug 472137, bug 433867, bug 494412, bug 468619, bug 449069, bug 495047, bug 453314 FIXED-IN: 6.3.0 M +1 -1 containments/desktop/package/contents/ui/FolderView.qml M +1 -48 containments/desktop/package/contents/ui/FolderViewLayer.qml M +165 -26 containments/desktop/plugins/folder/autotests/positionertest.cpp M +18 -3 containments/desktop/plugins/folder/autotests/positionertest.h M +23 -7 containments/desktop/plugins/folder/foldermodel.cpp M +5 -0 containments/desktop/plugins/folder/foldermodel.h M +176 -60 containments/desktop/plugins/folder/positioner.cpp M +37 -8 containments/desktop/plugins/folder/positioner.h https://invent.kde.org/plasma/plasma-desktop/-/commit/cc44615b34dacc2a4acfdc82de885c943318a7f6