Bug 509967

Summary: Dragging desktop widget off screen makes the grid visualization disappear
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: akselmo, notmart, postix
Priority: NOR    
Version First Reported In: 6.5.80   
Target Milestone: 1.0   
Platform: KDE Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.5.0
Sentry Crash Report:
Attachments: Disappears

Description Nate Graham 2025-09-26 16:20:25 UTC
Created attachment 185298 [details]
Disappears

See attached screen recording.
Comment 1 Akseli Lahtinen 2025-09-29 09:04:37 UTC
Can confirm, seems to happen immediately when cursor touches screen edges. 

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.8-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
Comment 2 Bug Janitor Service 2025-09-29 09:17:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3220
Comment 3 Akseli Lahtinen 2025-09-29 11:07:54 UTC
Git commit c1172df2999aa92d917544c7aeebb4283e7dc68f by Akseli Lahtinen.
Committed on 29/09/2025 at 10:40.
Pushed by akselmo into branch 'master'.

desktop/main.qml: Return early on null container when dragging

If user touches the screen edges, there is no container.
This would cause the edit cancel itself too early, especially
if user drags the item back on top of the container.

Instead, just return early in these cases and wait for
explicit container change.

M  +5    -1    containments/desktop/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/c1172df2999aa92d917544c7aeebb4283e7dc68f
Comment 4 Akseli Lahtinen 2025-09-29 11:29:14 UTC
Git commit dc562647e277207ff2ddb5413736f04cde384aed by Akseli Lahtinen.
Committed on 29/09/2025 at 11:08.
Pushed by akselmo into branch 'Plasma/6.5'.

desktop/main.qml: Return early on null container when dragging

If user touches the screen edges, there is no container.
This would cause the edit cancel itself too early, especially
if user drags the item back on top of the container.

Instead, just return early in these cases and wait for
explicit container change.


(cherry picked from commit c1172df2999aa92d917544c7aeebb4283e7dc68f)

Co-authored-by: Akseli Lahtinen <akselmo@akselmo.dev>

M  +5    -1    containments/desktop/package/contents/ui/main.qml

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