Bug 500438

Summary: klipper popup-menu closes directly after clicking on 'invoke action'
Product: [Plasma] plasmashell Reporter: slartibart70
Component: Clipboard widget & pop-upAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: cwo.kde, kdedev, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description slartibart70 2025-02-19 22:23:29 UTC
Open the clipboard history with Meta-V
Next, click on the first icon on (any) entry. This should open an 'action' submenu
Instead, the whole popup disappears without giving the user a chance to select any action 

Compare this to the behavior of the klipper-widget in the system-tray:
click on clipboard
click on the first icon on (any) entry. 
A submenu appears at the icons position giving you the option to run any defined action on the selected clipboard entry
Comment 1 slartibart70 2025-02-19 22:23:58 UTC
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.15-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 2 TraceyC 2025-02-20 19:02:40 UTC
Confirmed on 6.3.1
Cannot reproduce on git-master. This may be fixed by recent merges. I'll keep this open so you can confirm on your system after the next Plasma update. Please let us know if it's fixed for you, or not, when it updates. Thanks!
Comment 3 slartibart70 2025-02-21 11:08:10 UTC
i'm using the git version (solopasha copr unstable)... this is pretty current.

Nonetheless, the error remains when opening the popup with Meta-V and invoking the action menu
Its ok when opened using the systray.
Comment 4 slartibart70 2025-02-21 11:11:26 UTC
e.g.
plasma-workspace-6.3.80~43.git2441f06-1.fc41.x86_64
Comment 5 cwo 2025-02-21 14:51:20 UTC
I can confirm this. It works if you use it in the panel, but it doesn't work in the Meta+V popup.

(the experience isn't exactly great in the panel popup version either, but at least it works)
Comment 6 Bug Janitor Service 2025-02-21 15:55:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5240
Comment 7 cwo 2025-02-22 16:31:02 UTC
Git commit d8a2b391a62e96a5280ab737e627ce087fd6cb69 by Christoph Wolk.
Committed on 22/02/2025 at 16:30.
Pushed by cwo into branch 'master'.

klipper: don't hide popup when action popup shows

The klipper history menu shows a button that opens the action popup for
the selected item. This works properly in the plasmoid version of the
menu, but fails in the popup widget, as the popup hides when another
window gains focus – including the popup window it triggered, and
without it the actions popup is gone as well.

Instead, give the actions popup a recognizable name, and don't close the
history popup if the newly focused window has a matching object name.

M  +1    -1    klipper/klipperpopup.cpp
M  +1    -0    klipper/urlgrabber.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/d8a2b391a62e96a5280ab737e627ce087fd6cb69
Comment 8 cwo 2025-02-23 08:11:20 UTC
Git commit 91e7437f6ac919e5d525c92f54eaa71f35174bee by Christoph Wolk.
Committed on 23/02/2025 at 07:49.
Pushed by cwo into branch 'Plasma/6.3'.

klipper: don't hide popup when action popup shows

The klipper history menu shows a button that opens the action popup for
the selected item. This works properly in the plasmoid version of the
menu, but fails in the popup widget, as the popup hides when another
window gains focus – including the popup window it triggered, and
without it the actions popup is gone as well.

Instead, give the actions popup a recognizable name, and don't close the
history popup if the newly focused window has a matching object name.


(cherry picked from commit d8a2b391a62e96a5280ab737e627ce087fd6cb69)

47c0e158 klipper: don't hide popup when action popup shows
41457203 Apply 1 suggestion(s) to 1 file(s)

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

M  +1    -1    klipper/klipperpopup.cpp
M  +1    -0    klipper/urlgrabber.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/91e7437f6ac919e5d525c92f54eaa71f35174bee