Bug 438004

Summary: [Wayland] Cursor gets stuck in wrong state on hovering over a submenu of the context menu of Dolphin after drag-and-drop
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: auxsvr, dashonwwIII, dev.bacteriostat, guimarcalsilva, inglessi, kde, kfm-devel, loig.pascual, nate, n_s_mendoza, p.r.worrall, php4fan
Priority: NOR Keywords: wayland
Version: 23.03.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=400014
https://bugs.kde.org/show_bug.cgi?id=446891
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot
screen recording
How to reproduce stuck cursor

Description Patrick Silva 2021-06-02 16:42:27 UTC
Created attachment 138951 [details]
screenshot

SUMMARY
I can reproduce this bug on both Arch running Plasma 5.22 beta and
neon unstable.

STEPS TO REPRODUCE
1. use Wayland session
2. drag a file from Dolphin and drop it on desktop
3. choose "Cancel" in the context menu
4. righ-click on any file in Dolphin and hover over any submenu (Open with,
Compress/Extract, Share, Assign tags)

OBSERVED RESULT
As we can see in the attached screenshot, green circle with "+" appears together cursor. The same cursor appears if you dismiss the context menu opened in the last step and hover over location bar, Places panel, files view and Information panel.
Restarting Dolphin fixes cursor.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Nate Graham 2021-06-14 15:27:51 UTC
Cannot reproduce with latest git master on Wayland. Is it still happening for you? If so can you attach a screen recording so I can be sure I'm testing properly?
Comment 2 Patrick Silva 2021-06-14 16:28:07 UTC
Created attachment 139315 [details]
screen recording

Operating System: Arch Linux
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 3 Nate Graham 2021-06-14 21:43:00 UTC
Huh, that's exactly what I'm doing too. :/
Comment 4 Paul Worrall 2021-06-17 09:03:07 UTC
I can reproduce by following steps 1 to 3 of the original report, followed by deselecting the original file (click on white space) and then just moving the mouse pointer around the Dolphin window.  Going into and out of the Places panel usually triggers it. (I would attach a recording but simplescreenrecorder seems to have stopped working).
Comment 5 Paul Worrall 2021-06-17 09:39:56 UTC
This is my software setup:

Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.4.0-74-generic (64-bit)
Graphics Platform: Wayland
Processors: 2 × AMD A6-6400K APU with Radeon(tm) HD Graphics
Memory: 7.7 GiB of RAM
Graphics Processor: AMD CEDAR
Comment 6 David Redondo 2021-06-24 09:19:57 UTC
*** Bug 439099 has been marked as a duplicate of this bug. ***
Comment 7 Bacteria 2021-10-18 08:43:52 UTC
I can still reproduce this on Plasma 5.23. I launched dolphin using terminal and got this warning message:

qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x55c695d14790) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x55c696569670) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents

Looks relevant to me. This warning comes whenever the the icon appears.
Comment 8 Patrick Silva 2022-01-13 12:15:57 UTC
I'm unable to reproduce after update to qt5-wayland package with dataDevicev3 support.

Operating System: Arch Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 9 Patrick Silva 2022-03-31 15:32:46 UTC
it's still reproducible with other steps.

1. drag a file from Dolphin and drop it on Discord running on Xwayland
2. right-click on any file/folder in Dolphin
3. hover over the submenus of the context menu
Comment 10 Patrick Silva 2022-03-31 15:34:11 UTC
Operating System: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 11 guimarcalsilva 2022-04-17 02:58:47 UTC
Neon Unstable is also being affected. I found a reliable way of reproducing the bug:

1. Open Dolphin
2. Open a Chromium/Electron-based program (maybe it's a problem between Wayland and Xwayland? This didn't work with Firefox or NeoChat)
3. Drag and drop a file from Dolphin to the browser/app
4. Go back to Dolphin and move the cursor around. 

Notice at first buttons like Split won't get highlighted. Try clicking on the window and moving the cursor between the Slip button and the address bar. You'll see the cursor getting stuck.

If you keep moving the mouse around, the cursor will keep changing depending on what's under it.
Comment 12 guimarcalsilva 2022-04-17 03:03:08 UTC
Created attachment 148198 [details]
How to reproduce stuck cursor

How to reproduce stuck cursor with Chromium-based browser
Comment 13 Nataniel 2022-05-24 07:04:11 UTC
I have the same problem on wayland, plasma 5.24.5 (Manjaro). Though in my case it happens with firefox. I've not been able to narrow down the exact cause of the issue, but it happens every time I use the "folder view" widget and sometimes when I use Dolphin.
Comment 14 Nate Graham 2022-06-27 18:55:46 UTC
*** Bug 455954 has been marked as a duplicate of this bug. ***
Comment 15 Patrick Silva 2022-09-17 13:54:40 UTC
I'm unable to reproduce. If anyone can reproduce with Plasma 5.26 beta or newer, feel free to reopen.

Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 16 Patrick Silva 2022-09-17 14:04:50 UTC
oh no, I have a hand shaped cursor after these steps:

1. use Wayland session
2. open Kickoff
3. drag a favorite app to desktop, do not release button and press ESC key
4. open Kickoff - natice that mouse pointer changes to hand shaped cursor. I also see an hand shaped cursor when hovering over any part of Plasma panel.
Comment 17 Patrick Silva 2022-09-17 14:11:17 UTC
Let's close this report. I have filed bug 459275
Comment 18 Patrick Silva 2023-04-15 16:05:40 UTC
Can reproduce again.

1. use Wayland session
2. open Gaupol - a GTK3 subtitles editor
3. open Dolphin
4. drag a text file and drop it on Gaupol - a warning about not recognized file shows up, just click on "OK" button
5. alt+tab to Dolphin
6. right-click on the previously used text file and hover over "Open with" submenu

Result: a green circle with "+" appears together the mouse pointer. Restarting Dolphin fixes the mouse pointer.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland
Comment 19 Patrick Silva 2023-06-28 21:25:43 UTC
*** Bug 471549 has been marked as a duplicate of this bug. ***
Comment 20 php4fan 2023-06-28 21:37:18 UTC
If Bug 471549 is a duplicate, then it's not only Wayland.
Comment 21 php4fan 2023-06-28 21:38:29 UTC
SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.1.26-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics
Manufacturer: LENOVO
Product Name: 81WE
System Version: IdeaPad 3 15IIL05
Comment 22 Patrick Silva 2023-11-19 17:07:48 UTC
Cannot reproduce with Dolphin 24.01.75. \o/

Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Graphics Platform: Wayland