Bug 451184

Summary: Action buttons do not appear when an item moves to under the mouse, in particular after deleting an item
Product: [Plasma] plasmashell Reporter: Frank Steinmetzger <dev+kde>
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR Keywords: usability
Version First Reported In: 5.24.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.25
Sentry Crash Report:
Attachments: Screencapture as requested

Description Frank Steinmetzger 2022-03-06 01:38:51 UTC
SUMMARY
When I want to delete several clipboard items in succession, it is not possible to just repeatedly click at the place of the delete button and let the items move up under the mouse cursor, because the button of the next item does not appear, even though it would be right under the mouse cursor. If I now click, the item is instead selected and the popup closes.

In case my description is not good enough, I’m happy to provide a video capture.

STEPS TO REPRODUCE
1. Have several items in the clipboard.
2. Move mouse over the delete button of an item and click it.
3. The item is deleted and the items around it move up to fill the space.
4. Click again where the delete button was to delete the next item.

OBSERVED RESULT
The delete button of the item that moved up does not appear unless the mouse is moved again. As a result, the click does not trigger a delete action, but instead selects the item and the clipboard popup closes.

EXPECTED RESULT
I would like for the buttons to appear, because they are right under the mouse cursor in that moment. This is quite the same behaviour as when I delete items from the notification list (where the dismiss button is not hover-activated) or from the (vertical) tab bar in a browser.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4590 CPU @ 3.30GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 1 Nate Graham 2022-03-22 03:30:14 UTC
That's exactly what it does for me, and what it's supposed to do.

Can you attach a screen recording that shows exactly what it's doing for you?
Comment 2 Frank Steinmetzger 2022-03-24 22:08:48 UTC
Created attachment 147711 [details]
Screencapture as requested

First I delete item “a”, then click on where the delete button would be for item “b”. But instead of deleting, I select it.
Then I open the panel again (note that “b” is the topmost one item) and delete it and item “c”, including moving the mouse afterwards, so the delete button reappears. Then I delete item “d” and don’t move the mouse, which prevents the delete button from appearing. Thus I select item “e” with the next click.
Comment 3 Nate Graham 2022-03-31 19:09:10 UTC
Thanks, I can see what you mean.

Unfortunately (or fortunately?) it works as expected for me. There have been a number of focus-related changes to the Clipboard widget in git master since 5.24 was released, and I think it is likely that one of those changes fixed it.