Bug 449877

Summary: Right clicking on an app in the system tray and the clicking on the application launcher brings up that application's main window
Product: [Plasma] plasmashell Reporter: Mark Fraser <mfraz74+kde>
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: materka, nate, noahadvs
Priority: NOR    
Version: 5.24.0   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=450429
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Icon bar

Description Mark Fraser 2022-02-09 18:32:05 UTC
SUMMARY
In KDE 5.24, if I right click on the Amarok or Choqok icon in the system tray to bring up the menu, click off and then click on the application launcher the main window of Amarok or Choqok will appear rather than the application launcher menu.
***


STEPS TO REPRODUCE
1. Right click on the Choqok icon in the system tray
2. Click on the desktop to remove the menu.
3. Click on the application launcher.

OBSERVED RESULT
Choqok's window appears

EXPECTED RESULT
The application launcher should appear.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-28-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.6 GiB of RAM
ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-02-11 17:21:09 UTC
Do you have a left-edge panel with the Application Launcher widget in the top-left corner of the screen? If you right-click on the top-left-most pixel in the screen, do you get a menu for one of those apps with a System Tray icon, rather than a menu for the Application Launcher?
Comment 2 Nate Graham 2022-02-11 17:21:23 UTC
If so, this is probably the X11 version of Bug 433079.
Comment 3 Mark Fraser 2022-02-11 17:44:52 UTC
Created attachment 146590 [details]
Icon bar
Comment 4 Mark Fraser 2022-02-11 17:49:05 UTC
(In reply to Nate Graham from comment #2)
> If so, this is probably the X11 version of Bug 433079.

No, I just have the one panel at the bottom of the screen - see the attachment.

An update to the original bug, I only have to right click on the system tray icon for either Amarok or Choqok and then clicking anywhere along that panel to bring up their main window.
Comment 5 Nate Graham 2022-02-14 16:39:58 UTC
Does it happen if you click *anywhere* on the Application Launcher icon, or only in one corner of it?
Comment 6 Mark Fraser 2022-02-14 22:22:36 UTC
It happens anywhere along the bottom bar, I can click right in the middle of the task manager after right clicking the Amarok icon and it will happen.
Comment 7 Konrad Materka 2022-02-14 22:24:49 UTC
(In reply to Nate Graham from comment #5)
> Does it happen if you click *anywhere* on the Application Launcher icon, or
> only in one corner of it?

I can confirm with Skype (SNI). This might be caused by:
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1402
Comment 8 Konrad Materka 2022-02-14 22:33:20 UTC
To reproduce:
* any app that uses SNI and has context menu

1. Right click on app to show menu
2. Hide context mane (click anywhere, hit Escape etc)
3. Right or left click on other SNI icon or Application Launcher icon
4. Context menu shows or left click event is send

I tested with Skype and TeamViewer
Comment 9 Konrad Materka 2022-02-22 21:18:42 UTC

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