Bug 463395

Summary: Context menu for Motrix app's System Tray icon appears in the wrong place
Product: [Plasma] plasmashell Reporter: rosswzyang
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CLOSED FIXED    
Severity: normal CC: materka, nate, qydwhotmail, rosswzyang
Priority: NOR    
Version First Reported In: 5.26.4   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27
Sentry Crash Report:
Attachments: reproduce video

Description rosswzyang 2022-12-23 12:50:13 UTC
SUMMARY
wrong or hidden popup menu for some electron applications


STEPS TO REPRODUCE
1. open motrix / vscode
2.  click system try of motrix (maximize vscode then disable maximizeing)

OBSERVED RESULT
popup menu of motrix has wrong position or is hidden (vscode menu in menu bar appears then disappears quickly)

EXPECTED RESULT
popup menu of motrix  has correct position ( (vscode menu in menu bar doesn't appear and disappear quickly))
(these apps work fine in gnome)

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221222
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11320H @ 3.20GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: TIMI
Product Name: A18R

ADDITIONAL INFORMATION
Comment 1 rosswzyang 2022-12-23 12:51:02 UTC
Created attachment 154781 [details]
reproduce video
Comment 2 rosswzyang 2022-12-23 12:56:07 UTC
*** Bug 463394 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2023-01-06 20:01:57 UTC
I'm afraid these are two different bugs, not the same one. Let's use this one for the offset System Tray menu issue affecting Motrix. Can you file a new bug report for VSCode at https://bugs.kde.org/enter_bug.cgi?product=kwin&component=wayland-generic?
Comment 4 rosswzyang 2023-01-14 16:25:58 UTC
(In reply to Nate Graham from comment #3)
> I'm afraid these are two different bugs, not the same one. Let's use this
> one for the offset System Tray menu issue affecting Motrix. Can you file a
> new bug report for VSCode at
> https://bugs.kde.org/enter_bug.cgi?product=kwin&component=wayland-generic?

done, https://bugs.kde.org/show_bug.cgi?id=464284
Comment 5 Fushan Wen 2023-01-20 13:16:28 UTC
Cannot reproduce. Maybe it's already fixed in 5.27. Better test in 5.27 again.
Comment 6 Fushan Wen 2023-01-20 13:18:06 UTC
I ran Motrix on Plasma Wayland session, tried with 100% scale and 150% scale. The menu was positioned correctly under both global scales.
Comment 7 Nate Graham 2023-01-20 21:56:36 UTC
rosswzyang, please re-open if it's not fixed for you in the Plasma 5.27 beta or final release. Thanks!
Comment 8 rosswzyang 2023-02-04 14:00:36 UTC
(In reply to Nate Graham from comment #7)
> rosswzyang, please re-open if it's not fixed for you in the Plasma 5.27 beta
> or final release. Thanks!

OK
Comment 9 rosswzyang 2023-03-05 10:42:58 UTC
the position of motrix systemtray is correct, but it seems that I must click many many times to open the popup menu.
Comment 10 Nate Graham 2023-03-05 17:10:13 UTC
That's a different issue. Please submit a new bug report for it. Thanks!