Bug 423603

Summary: Some app system tray context menus render in the wrong location
Product: [Plasma] plasmashell Reporter: Freddie Spencer <woat>
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adojck, materka
Priority: NOR    
Version: 5.18.5   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: image of context menus in wrong location
Second attemp on a fresh Fedora 32 base
Tray menu icon offset 2x
Tray menu icon offset 1x

Description Freddie Spencer 2020-06-28 03:11:39 UTC
Created attachment 129734 [details]
image of context menus in wrong location

SUMMARY
The context menus from the system tray open in the wrong location for some applications.  It happens with at least Mumble and Nextcloud-client. I suspect it has to do with them both being QT based but I'm not sure.

STEPS TO REPRODUCE
1. Run Mumble or Nextcloud
2. Right click the tray icon and see the context menu open in the wrong place.

OBSERVED RESULT
The context menu opens too high on the screen.

EXPECTED RESULT
The context menu should open close to the tray icon.

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.16-1-MANJARO
OS Type: 64-bit


ADDITIONAL INFORMATION
Comment 1 Adomas Jackevičius 2020-06-28 21:16:57 UTC
Can't reproduce the issue with latest versions:

Arch Linux
KDE Frameworks 5.71.0
KDE Plasma 5.19.2
Qt 5.15.0
nextcloud-client 2.6.4

Tried with and without scaling, as at first look it seemed to be scaling related. Also tried with single and with multi monitor setups.
Comment 2 Freddie Spencer 2020-06-29 18:22:03 UTC
Created attachment 129772 [details]
Second attemp on a fresh Fedora 32 base

In order to double check it's not a distro specific bug I tried again on a fresh copy of Fedora 32 (from usb). I also used different hardware.  This time a laptop with integrated graphics instead of a desktop with 2 screens and an nvidia card.  Same results.

Is it possible you're not using the default panel for kde?

Operating System: Fedora 32
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.13.2
Kernel Version: 5.6.6-300.fc32.x86_64
OS Type: 64-bit
Comment 3 Adomas Jackevičius 2020-06-29 18:38:08 UTC
Created attachment 129774 [details]
Tray menu icon offset 2x
Comment 4 Adomas Jackevičius 2020-06-29 18:38:30 UTC
Created attachment 129775 [details]
Tray menu icon offset 1x
Comment 5 Adomas Jackevičius 2020-06-29 18:41:25 UTC
Could reproduce, but could not gather more info on this. Not sure if plasmashell should report something, or some other process. It might be something to do like Freddie wrote, that it's Qt based. For example I have one more app that is not from KDE, but is Qt based and it's context menu in tray does not appear at all. That is Telegram 2.1.13 and I'm pretty sure before it had context menu.
Comment 6 Konrad Materka 2020-06-29 20:27:54 UTC
Cannot reproduce with KDE Neon distribution, but was able with latest Manjaro:
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0

Probably related to Bug 421275
Comment 7 Konrad Materka 2020-06-29 20:51:28 UTC
Definitely a duplicate of Bug 421275. I just reproduced this issue with Muble, with fix it no longer happens. I will try to backport this fix to 5.19 (and maybe 5.18)

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