Bug 443149 - Cannot open right-click menu for GTK-based system tray icons
Summary: Cannot open right-click menu for GTK-based system tray icons
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: 5.22.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-30 04:23 UTC by nyanpasu64
Modified: 2021-10-19 19:24 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nyanpasu64 2021-09-30 04:23:05 UTC
SUMMARY
After upgrading to KDE 5.23 beta, I can no longer right-click system tray icons which open GTK-based menus.

STEPS TO REPRODUCE
1. Launch an app with a GTK-based system tray icon (like Screenkey, Syncthing-GTK, or Element (Electron)).
2. Right-click the icon.

OBSERVED RESULT
No menu opens.

EXPECTED RESULT
A menu opens.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.90
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.14.8-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Michael 2021-10-17 02:34:01 UTC
I believe it's fixed in 5.23 release.
Comment 2 Nate Graham 2021-10-17 20:12:39 UTC
Can anyone else confirm?
Comment 3 Michael 2021-10-17 21:36:40 UTC
(In reply to Nate Graham from comment #2)
> Can anyone else confirm?

The right-click menus weren't working in the beta, now they do in the release, however, they are still somewhat broken and left-clicking on the xembedsni tray icon sometimes brings up the right-click menu, from a _different_ tray icon, which is really weird.
Comment 4 Nate Graham 2021-10-17 21:37:34 UTC
Sounds like a separate issue. Can you open a new bug report about it?
Comment 5 Michael 2021-10-17 21:41:21 UTC
(In reply to Nate Graham from comment #4)
> Sounds like a separate issue. Can you open a new bug report about it?

I could file a bug no problem, but it's kinda hard to even get a screenshot of that happening. I'm currently fiddling with it.

It is technically a separate issue, though I suspect it was caused by fixing this one.
Comment 6 Michael 2021-10-17 23:11:32 UTC
(In reply to Nate Graham from comment #4)
> Sounds like a separate issue. Can you open a new bug report about it?

See: https://bugs.kde.org/show_bug.cgi?id=443925
Comment 7 nyanpasu64 2021-10-18 02:02:56 UTC
I upgraded to 5.23. Unfortunately the right-click issue is worse. The first right-click opens the menu as normal, but the second one either causes a flickering black square to appear above the menu (the icon's right-click menu appearing and disappearing rapidly), and/or causes the entire desktop to act as if the mouse was constantly spamming right-click inputs to the app under the cursor (menus appearing and disappearing, hundreds of Konsole "configure shortcut" dialogs opening). At this point, Xorg is burning 1 core of CPU, plasmashell is burning between 1 and 2 cores of CPU, and exiting this state requires killing plasmashell and possibly the app you right-clicked as well.

This issue occurs with compositing on or off.

Should this be tracked here or in a separate bug?
Comment 8 nyanpasu64 2021-10-18 02:18:49 UTC
Update: I think my issue is the same as Bug 443925.
Comment 9 Michael 2021-10-18 02:22:42 UTC
(In reply to nyanpasu64 from comment #8)
> Update: I think my issue is the same as Bug 443925.

Thanks. It means I'm not crazy. :-D