Bug 509859 - Folder View selection rectangle wont select anything nor turn off
Summary: Folder View selection rectangle wont select anything nor turn off
Status: RESOLVED DUPLICATE of bug 490677
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: 6.5.80
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-24 09:21 UTC by Akseli Lahtinen
Modified: 2025-09-25 12:19 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Akseli Lahtinen 2025-09-24 09:21:53 UTC
SUMMARY

When dragging a selection rectangle inside a folder view, it sometimes gets stuck.
It also wont select any items.


STEPS TO REPRODUCE
1. Add folder view widget and set it to point to a folder with enough files to show scrollbar
2. Drag around the widget to create selection
3. In some folders, like Music when selected in "Places panel item" section, it wont select anything
4. But with custom selection it does???
5. If user holds down mouse long enough for the drag effect to start, then moves mouse around, the selection effect gets stuck

OBSERVED RESULT
Everything is horrible

EXPECTED RESULT
Selection would select and not get stuck

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600


ADDITIONAL INFORMATION
I wonder if I broke this :(
Comment 1 Bug Janitor Service 2025-09-24 14:36:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3205
Comment 2 Nate Graham 2025-09-24 18:29:42 UTC

*** This bug has been marked as a duplicate of bug 490677 ***
Comment 3 Bug Janitor Service 2025-09-25 09:47:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5850
Comment 4 Marco Martin 2025-09-25 12:06:26 UTC
Git commit 1560be8ab509c2a3a30c8381d382d8f9eeee5eb9 by Marco Martin.
Committed on 25/09/2025 at 11:24.
Pushed by mart into branch 'master'.

ContainmentLayoutManager: send recursive mouse release events too

In order to be sure to not leave any hanging mouse event,
such as the folderview rubberband stuck in selection mode,
when we are sending a recursive ungrab, fist send a recursive mouse release
event as well, to make sure any item that might have an internal state
of mouse pressed will reset it
Related: bug 416909

M  +1    -0    components/containmentlayoutmanager/itemcontainer.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/1560be8ab509c2a3a30c8381d382d8f9eeee5eb9
Comment 5 Bug Janitor Service 2025-09-25 12:19:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5852
Comment 6 Marco Martin 2025-09-25 12:19:49 UTC
Git commit 9062abed44a43db8aab724425d1730270e7257a5 by Marco Martin.
Committed on 25/09/2025 at 12:19.
Pushed by mart into branch 'Plasma/6.5'.

ContainmentLayoutManager: send recursive mouse release events too

In order to be sure to not leave any hanging mouse event,
such as the folderview rubberband stuck in selection mode,
when we are sending a recursive ungrab, fist send a recursive mouse release
event as well, to make sure any item that might have an internal state
of mouse pressed will reset it
Related: bug 416909


(cherry picked from commit 1560be8ab509c2a3a30c8381d382d8f9eeee5eb9)

1560be8a ContainmentLayoutManager: send recursive mouse release events too

Co-authored-by: Marco Martin <notmart@gmail.com>

M  +1    -0    components/containmentlayoutmanager/itemcontainer.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/9062abed44a43db8aab724425d1730270e7257a5