Bug 450287

Summary: After interacting with an app's System Tray icon, left-clicking anywhere on the panel activates the icon's app
Product: [Plasma] plasmashell Reporter: Norbert Preining <norbert>
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, m.kurz, materka, nate, noahadvs, thflorek
Priority: NOR Keywords: regression
Version: 5.24.1   
Target Milestone: 1.0   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Norbert Preining 2022-02-15 06:28:56 UTC
SUMMARY
Since the update from 5.23.90 to 5.24 (both tried on Arch Linux and Debian unstable), the system tray icons behave strange in some ways:
- minimizing some windows to tray icons, then click on *any* icon on the task bar pops up the context menu of the systray icon
- some applications (known: anydesk) lost their systray icon context menu

A similar bug was present in 5.22.90 and fixed for 5.23, but something seems to have creeped in again between 5.23.90 and 5.24.0 final release

STEPS TO REPRODUCE

Misplaced click
1. start steam, maximize it
2. click on the top bar X to minimize it to tray icon
3. click on the icon of any application in the task bar
4. the context menu of the steam tray icon pops up (far from the actual mouse pointer location!)

(If needed, I can try to capture a screen shot of that)

Lost context menu
1. Install anydesk
2. right/left click on the systray icon
3. no context menu is shown


ADDITIONAL COMMENTS
The same behavior appeared with both frameworks 5.90 and 5.91, so it seems not to depend on that.
Also, the same behavior is shown on Arch Linux (packages made by Arch maintainers) as well as my own OBS builds of KDE/Plasma for Debian, so on two independent builds.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.9-zen1-0.1-zen-custom (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 62.8 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Comment 1 Norbert Preining 2022-02-15 06:35:12 UTC
Additional comment concerning the "Misplaced click":

No need for binary programs, I can reproduce this with ksnip:
- right-click on ksnip tray icon, select "Open editor"
- click on the Window decoration X to close it to the tray icon
- click on any icon in the taskbar

Observed result: the ksnip editor reappears
Expected result: the application of the clicked icon appears
Comment 2 Norbert Preining 2022-02-15 06:38:37 UTC
One more comment concerning reproducibility with ksnip:
Interestingly it only happens when I **right** click and select "Open Editor"

When I just simply click on the tray icon of ksnip it also shows the editor, but then the misplaced click is not reproducible, while in the former case (right click) it is 100% reproducible.

The same is the case with Steam, Right-click actions only trigger a misplaced click, not left-click actions on the tray.
Comment 3 Patrick Silva 2022-02-15 11:22:23 UTC
The context menu should be fixed today with Plasma 5.24.1. See bug 449870.
Comment 4 Nate Graham 2022-02-15 21:28:37 UTC
Can you confirm which of those bugs are still present in 5.24.1?
Comment 5 Norbert Preining 2022-02-15 21:52:22 UTC
I will retest with 5.24.1 and report back, will need 1-2 days to have the packages ready.
Comment 6 Norbert Preining 2022-02-15 22:45:41 UTC
The "misplaced-mouse-click" is still present on Plasma 5.24.1 / Arch

The Debian packages are built ATM.

The context menu will need confirmation from a user of my Debian packages, I will inquire.
Comment 7 Thomas Florek 2022-02-16 06:26:55 UTC
Anydesk's context menu is again working.

The "misplaced-mouse-click" is still present on Plasma 5.24.1 / Debian unstable
Comment 8 Norbert Preining 2022-02-16 09:39:33 UTC
Like Thomas I can confirm that on Debian/unstable with my own OBS builds (frameworks 5.91, plasma 5.24.1), as well as with Arch builds, the strange misplaced clicks can be reproduced with e.g. ksnip in the same way as described above (right click ..)
Comment 9 Nate Graham 2022-02-21 21:23:22 UTC
The remaining issue seems like an X11 version of Bug 433079.

Noah, could you take a look?
Comment 10 Nate Graham 2022-02-21 21:29:06 UTC
Oh, there is an old bug report about this already: Bug 409768.

Let's continue there.

*** This bug has been marked as a duplicate of bug 409768 ***