Bug 502721

Summary: Right click menu often requires two clicks when focus is lost
Product: [Plasma] plasmashell Reporter: iodreamify
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev, nate, pallaswept, qydwhotmail
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: recording

Description iodreamify 2025-04-12 18:24:39 UTC
Created attachment 180208 [details]
recording

SUMMARY
If i left click on a maximized window and then want to get the right click menu on the Task Manager icons the first click often does nothing and only the 2nd click will get the menu to popup. All other elements on the panel don't seem to suffer from this. I've attached a video for demonstration.  

STEPS TO REPRODUCE
1. Open a maximized window
2. Left click to give that window focus
3. Right click on a task-manager icon
4. Right click again to get the right click menu

OBSERVED RESULT
First click will do nothing

EXPECTED RESULT
Right click menu appears on the first click

Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Memory: 14,9 GB of RAM
Graphics Processor 1: AMD Radeon 660M
Comment 1 David Edmundson 2025-04-16 14:35:47 UTC
*** Bug 496292 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2025-04-16 15:32:56 UTC
Never seen this with Qt 6.8.2, FWIW. Does this issue by any chance persist in a new clean user account on the same machine?
Comment 3 iodreamify 2025-04-16 15:51:25 UTC
(In reply to Nate Graham from comment #2)
> Never seen this with Qt 6.8.2, FWIW. Does this issue by any chance persist
> in a new clean user account on the same machine?

Yes, just tried it with a clean account on Wayland
Comment 4 TraceyC 2025-04-16 16:28:25 UTC
I was just able to reproduce this on git-master following the original testing steps with the Text and Icons Task Manager

Setup:
Maximized Firefox window, Thunderbird window
Other minimized windows. 

1. Firefox has focus. Left click on Thunderbird's icon in the task manager
2. Right click on any other icon

Result: No context menu appears. The second right click makes it appear.

It's intermittent but frequent on my system

Operating System: Solus 4.7
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.14.0
Qt Version: 6.8.3
Kernel Version: 6.12.21-316.current (64-bit)
Graphics Platform: Wayland