Bug 499898 - Multiple file selection is broken in Wayland since Plasma 6.3 when drag ends with pointer over an icon
Summary: Multiple file selection is broken in Wayland since Plasma 6.3 when drag ends ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: 6.3.0
Platform: Other Linux
: HI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 500046 500182 500270 500350 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-12 16:58 UTC by Efe Ciftci
Modified: 2025-02-19 15:05 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.2
Sentry Crash Report:


Attachments
File selection bug introduced in Plasma 6.3. (60.82 KB, video/webm)
2025-02-12 16:58 UTC, Efe Ciftci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Efe Ciftci 2025-02-12 16:58:13 UTC
Created attachment 178198 [details]
File selection bug introduced in Plasma 6.3.

SUMMARY
Selecting multiple icons on the desktop is broken since Plasma 6.3. When the cursor stops over an icon after dragging the selection marker for multiple files, only the hovered icon is selected.

STEPS TO REPRODUCE
1. Start selecting multiple files on the desktop by clicking an empty space and drag across files.
2. Release mouse on top of an icon.

OBSERVED RESULT
Only the hovered icon is selected.

EXPECTED RESULT
All icons that were in the selection marker is selected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.3
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
The attached video demonstrates this bug. The first selection in the video, which ends by releasing the mouse outside the icons, works OK. The second selection demonstrates this bug; all files except the hovered one gets deselected with the mouse release. This happens only in Wayland sessions, X11 is not affected. Also single/double click option in the System Settings does not affect this bug.
Comment 1 David Edmundson 2025-02-12 17:10:52 UTC
For me it seems to fail every other try.
Comment 2 David Edmundson 2025-02-12 17:21:36 UTC
Reverting "FolderView: Performance improvements for selections" does *not* fix it.
Comment 3 cwo 2025-02-16 22:50:48 UTC
*** Bug 500182 has been marked as a duplicate of this bug. ***
Comment 4 cwo 2025-02-17 18:03:11 UTC
*** Bug 500270 has been marked as a duplicate of this bug. ***
Comment 5 Bug Janitor Service 2025-02-18 10:49:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2828
Comment 6 David Edmundson 2025-02-18 16:27:25 UTC
Git commit 42f53e4618074d43d7956c6cbae0d5c4aa82825e by David Edmundson.
Committed on 18/02/2025 at 15:42.
Pushed by davidedmundson into branch 'master'.

folderview: Fix drag selection

There is code to handle clicking an icon when a selection is already
present. In this case we want to cancel our selection and select the
icon the mouse is over. What we don't want is for this to run when a
drag ends.

Using the cached selection is a good flag as it is immediately reset at
the end of the mouse up.

M  +3    -1    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/42f53e4618074d43d7956c6cbae0d5c4aa82825e
Comment 7 Nate Graham 2025-02-18 18:17:13 UTC
Git commit ac38398263484e40dfebf42778684334ce7b55de by Nate Graham.
Committed on 18/02/2025 at 18:02.
Pushed by ngraham into branch 'Plasma/6.3'.

folderview: Fix drag selection

There is code to handle clicking an icon when a selection is already
present. In this case we want to cancel our selection and select the
icon the mouse is over. What we don't want is for this to run when a
drag ends.

Using the cached selection is a good flag as it is immediately reset at
the end of the mouse up.


(cherry picked from commit 42f53e4618074d43d7956c6cbae0d5c4aa82825e)

Co-authored-by: David Edmundson <kde@davidedmundson.co.uk>

M  +3    -1    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/ac38398263484e40dfebf42778684334ce7b55de
Comment 8 Nate Graham 2025-02-18 21:45:26 UTC
*** Bug 500350 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2025-02-19 15:05:19 UTC
*** Bug 500046 has been marked as a duplicate of this bug. ***