Bug 482371 - Dragging Widget from Desktop to Panel Causes Widget to get Stuck on the Desktop
Summary: Dragging Widget from Desktop to Panel Causes Widget to get Stuck on the Desktop
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-04 11:38 UTC by Dashon
Modified: 2024-04-08 19:28 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2024-03-04 11:38:48 UTC
SUMMARY
Hey testing out plasma 6 in arch's testing repos and I noticed that if I drag a widget from the desktop to the top panel then that widget gets stuck on the desktop. I am no longer able to interact with it. If I drag it to the bottom panel it gets added correctly. However dragging off of the bottom panel and back to the desktop causes it to outright disappear. Restarting plasmashell fixes all the issues except for when the widget completely disappears. When that happens I just have to edit the config file and remove the widget from there. I've tested this with the network speed widget.

STEPS TO REPRODUCE
1. Enter edit mode and click add widget.
2. Drag a widget to the desktop.
3. Now drag that widget to some panel.

OBSERVED RESULT
It either disappears or gets stuck.

EXPECTED RESULT
It should move to wherever I moved it to and appear there.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-zen1-2-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C95
System Version: 1.0
Comment 1 Dashon 2024-03-11 11:35:32 UTC
Issue still present in 6.0.1
Comment 2 Bug Janitor Service 2024-03-12 11:45:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4053
Comment 3 Bug Janitor Service 2024-03-12 11:51:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2116
Comment 4 Marco Martin 2024-03-14 10:03:22 UTC
Git commit a4bf630eaf7f61e851bc6184bb4cafb97593394c by Marco Martin.
Committed on 14/03/2024 at 10:03.
Pushed by mart into branch 'master'.

Cancel edit prior reparenting the applet

First go out of applet edit mode, get rid of the config overlay,
release mouse grabs in preparation of applet reparenting.

Depends from https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4053

deleting items that have the current mouse grab can cause weird
behaviors or crashes
Related: bug 483287

M  +2    -0    containments/desktop/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/a4bf630eaf7f61e851bc6184bb4cafb97593394c
Comment 5 Marco Martin 2024-03-14 10:03:23 UTC
Git commit ad31d6ee90cda14869662f50c8150cb272d1f08c by Marco Martin.
Committed on 14/03/2024 at 10:03.
Pushed by mart into branch 'master'.

Ungrab any drag before cancelling edit mode

When cancelling edit things can be deleted, and if the current mouse
grabber item gets deleted, there might be crashes or misbehaviors
Related: bug 483287

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/ad31d6ee90cda14869662f50c8150cb272d1f08c
Comment 6 Bug Janitor Service 2024-03-14 10:03:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4068
Comment 7 Bug Janitor Service 2024-03-14 10:04:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2123
Comment 8 Marco Martin 2024-03-14 10:16:08 UTC
Git commit 9d5b5040b4033e8ecfede2d56fe4bee30164b43e by Marco Martin.
Committed on 14/03/2024 at 10:04.
Pushed by mart into branch 'Plasma/6.0'.

Cancel edit prior reparenting the applet

First go out of applet edit mode, get rid of the config overlay,
release mouse grabs in preparation of applet reparenting.

Depends from https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4053

deleting items that have the current mouse grab can cause weird
behaviors or crashes
Related: bug 483287


(cherry picked from commit a4bf630eaf7f61e851bc6184bb4cafb97593394c)

a4bf630e Cancel edit prior reparenting the applet

M  +2    -0    containments/desktop/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/9d5b5040b4033e8ecfede2d56fe4bee30164b43e
Comment 9 Marco Martin 2024-03-14 10:23:03 UTC
Git commit b465e3c97031fe774e981e0feb1ef10694c7376e by Marco Martin.
Committed on 14/03/2024 at 10:03.
Pushed by mart into branch 'Plasma/6.0'.

Ungrab any drag before cancelling edit mode

When cancelling edit things can be deleted, and if the current mouse
grabber item gets deleted, there might be crashes or misbehaviors
Related: bug 483287


(cherry picked from commit ad31d6ee90cda14869662f50c8150cb272d1f08c)

ad31d6ee Ungrab any drag before cancelling edit mode

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/b465e3c97031fe774e981e0feb1ef10694c7376e
Comment 10 Dashon 2024-03-30 15:33:45 UTC
Hey, I just updated to 6.0.3 on arch and I was going through retesting various bugs. I seem to still be experiencing the issue. I tried placing the analog clock widget on the desktop. Then dragging it to my hidden top panel and the behavior is the same as before. The clock widget does not move to the panel. The widget instead remains on the desktop in the top right corner and is no longer movable. It appears to be in some kind of state where it is stuck on the desktop, but still functional.
Comment 11 Dashon 2024-03-30 15:34:19 UTC
Qt. 6.6.3 should land in Arch soon, so that may be something for me to keep an eye on in regards to this bug being fixed.
Comment 12 Dashon 2024-03-30 18:39:47 UTC
Decided to grab Qt 6.6.3 from the testing repos and so far that doesn't solve the issue either.
Comment 13 Nate Graham 2024-04-08 19:28:01 UTC
The original issue is fixed; if your panel is hidden, then it's potentially a slightly different issue.