Bug 526073 - Using a rubberband selection while multiple items are being deleted causes the rubberband selection to suddenly enlarge
Summary: Using a rubberband selection while multiple items are being deleted causes th...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder View widget (other bugs)
Version First Reported In: 6.7.5
Platform: CachyOS Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2026-09-22 09:31 UTC by Fernando Marcelino Muniz
Modified: 2026-10-29 18:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.9.0
Sentry Crash Report:


Attachments
Issue in Folder View widget (1.36 MB, video/mp4)
2026-09-22 09:45 UTC, Fernando Marcelino Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Marcelino Muniz 2026-09-22 09:31:26 UTC
STEPS TO REPRODUCE
Delete multiple items on the Desktop area and start a rubberband selection while the deletions are underway.

OBSERVED RESULT
The rubberband selection suddenly enlarges.

EXPECTED RESULT
The rubberband selection should remain at the same size the user has set with the pointer.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.11.2
Kernel Version: 7.2.6-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 9 GB of RAM (8.1 GB usable)
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6
Comment 1 Fernando Marcelino Muniz 2026-09-22 09:45:30 UTC
Created attachment 196441 [details]
Issue in Folder View widget
Comment 2 Bug Janitor Service 2026-10-27 17:30:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/4134
Comment 3 cwo 2026-10-29 18:18:45 UTC
Git commit ebfd56d594548ac1855481015ab15e3455dc4a0a by Christoph Wolk.
Committed on 29/10/2026 at 17:50.
Pushed by cwo into branch 'master'.

containments/desktop: don't reset press position onModelReset

FolderView tracks the pointer position on press, and uses that
information on pointer move to start a drag or rubberband. However,
when something resets the model (such as when a lot of files are deleted
and each deletion resets the model), this information is reset. For the
most part, this means that you can't rubberband while the deletions
happen (you press, the press is reset, you move the mouse and nothing
happens) which isn't great but also not too bad. However, if you manage
to time it just right that the click and move happens fully within the
short period between resets, you'll start the rubberband, then the reset
changes the active rubberband to start at -1, -1 instead of the position
you actually clicked.

A somewhat easier to trigger condition is if some other process removes
or adds files to the desktop while the user is mid-rubberband, such as a
browser downloading things. In that case, the origin will also move from
the clicked position to the top left while the rubberband is active.

This is quite weird. So instead just update the rubberBand's origin if
the rubberband is not active yet. We keep resetting the press state
otherwise to keep the change as small as possible. This means that
starting a rubberband while a large number of files are quickly
added/removed one-by-one will continue to not work unless you get the
timing exactly right. But having to briefly wait while the system is
clearly doing something is less bad than suddenly changing the
rubberband region mid-operation, and changing this can wait for the
new desktop implementation (if feasible then).
FIXED-IN: 6.9.0

M  +6    -0    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/ebfd56d594548ac1855481015ab15e3455dc4a0a
Comment 4 Fernando Marcelino Muniz 2026-10-29 18:26:17 UTC
6.9? So it was not a bug?
Comment 5 cwo 2026-10-29 18:53:06 UTC
Git commit 8bd048fb6d343021c9926d37bfe8c6d85c08e900 by Christoph Wolk.
Committed on 29/10/2026 at 18:22.
Pushed by cwo into branch 'Plasma/6.8'.

containments/desktop: don't reset press position onModelReset

FolderView tracks the pointer position on press, and uses that
information on pointer move to start a drag or rubberband. However,
when something resets the model (such as when a lot of files are deleted
and each deletion resets the model), this information is reset. For the
most part, this means that you can't rubberband while the deletions
happen (you press, the press is reset, you move the mouse and nothing
happens) which isn't great but also not too bad. However, if you manage
to time it just right that the click and move happens fully within the
short period between resets, you'll start the rubberband, then the reset
changes the active rubberband to start at -1, -1 instead of the position
you actually clicked.

This is quite weird, and it's also not great that rubberbanding while
something is being deleted works sometimes and not at other times. The
reason for resetting all pressed state seems to only apply to the
pressed item, not the position itself. So we can just reset that
individually and skip the rest.

However, during stress testing I've been able to get it in a broken
state while repeatedly deleting and undeleting files and doing
rubberbands, where the rubberband remains active even when the mouse
button is no longer pressed, and can't be canceled unless the user
actually selects something with the rubberband. I don't have clear
reproduction steps, but it probably makes sense to just generally cancel
the rubberband if the button is no longer pressed - this way we should
shut down this whole class of errors (this is not the first time I've
seen something like this happen).
FIXED-IN: 6.9.0


(cherry picked from commit a1e570a41db4b772b09a7c4c99c4bb2765295c7e)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/8bd048fb6d343021c9926d37bfe8c6d85c08e900