Bug 450383

Summary: In the expanded grid, context menu for app icons (not Plasma applets) appears at edge of grid item, not right under the cursor
Product: [Plasma] plasmashell Reporter: Jin Liu <ad.liu.jin>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: materka, nate, noahadvs
Priority: NOR Keywords: regression
Version First Reported In: 5.24.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: notifications
update
touchpad
update, bottom panel
applet, 6.2-dev
app, 6.2-dev
tray menu

Description Jin Liu 2022-02-16 13:35:10 UTC
Created attachment 146815 [details]
notifications

SUMMARY
In the expanded icon list of system tray, when right clicking, the menu doesn't appear just under the mouse cursor, as in KDE apps and elsewhere in plasmashell. It seems to be placed next to an invisible border of the icon, either to the right or bottom.

STEPS TO REPRODUCE
1. Click the system tray's arrow.
2. Right click on an icon.

OBSERVED RESULT
Right-click menu appears some distance to the right or bottom of the mouse cursor.

EXPECTED RESULT
Right-click menu appears just under the mouse cursor.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Jin Liu 2022-02-16 13:36:13 UTC
Created attachment 146816 [details]
update
Comment 2 Jin Liu 2022-02-16 13:41:42 UTC
Created attachment 146817 [details]
touchpad
Comment 3 Nate Graham 2022-02-16 19:08:21 UTC
Can you try again with 5.24.1? Does it still happen there?
Comment 4 Jin Liu 2022-02-17 01:58:07 UTC
(In reply to Nate Graham from comment #3)
> Can you try again with 5.24.1? Does it still happen there?

Yes, the same in 5.24.1.
And I tested when the panel is on the bottom edge of the screen. Same problem, but those menu popping up to the right of the icon (like "update") now is to the above (see attachment).
Comment 5 Jin Liu 2022-02-17 01:59:28 UTC
Created attachment 146845 [details]
update, bottom panel
Comment 6 Konrad Materka 2022-02-18 20:28:01 UTC
(In reply to Jin Liu from comment #5)
> Created attachment 146845 [details]
> update, bottom panel

Do you have screenshot of how it looked before? The longer I look at new screenshots, the more it looks like it always was this way :)
Comment 7 Nate Graham 2022-02-21 21:41:19 UTC
Can reproduce.
Comment 8 Nate Graham 2024-08-23 21:29:02 UTC Comment hidden (spam)
Comment 9 Jin Liu 2024-08-24 03:43:48 UTC
Created attachment 172898 [details]
applet, 6.2-dev
Comment 10 Jin Liu 2024-08-24 03:45:04 UTC
Created attachment 172899 [details]
app, 6.2-dev

Unfortunately, for me it's still the same as before. Built from today's master. See the last two attachments.
Comment 11 Nate Graham 2024-08-28 22:22:20 UTC Comment hidden (spam)
Comment 12 Jin Liu 2024-10-11 01:51:19 UTC
With the new systray expander design, now the difference is app's menu popups above the icon, while widget's below the icon.

If we change the popup menu from widgets to appear above the icon, it would be consistent with apps. It would also fix the problem that pointer cursor blocks the menu text (see attachment)
Comment 13 Jin Liu 2024-10-11 01:51:38 UTC
Created attachment 174663 [details]
tray menu
Comment 14 Nate Graham 2024-10-16 17:22:40 UTC
Yeah, that seems sensible.