https://bugs.kde.org/show_bug.cgi?id=426761
Bug ID: 426761 Summary: Wayland: QMenu::popup(QCursor::pos()) creates windowed menu not at cursor position. Product: plasmashell Version: 5.19.90 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: k...@davidedmundson.co.uk Reporter: lukas.sp...@web.de CC: plasma-b...@kde.org Target Milestone: 1.0 Created attachment 131795 --> https://bugs.kde.org/attachment.cgi?id=131795&action=edit Simple Qt5 application illustrating observed behavior. SUMMARY In Wayland, for a Qt 5 application, showing a menu at cursor position shows the menu windowed centered on application window instead of as menu at the position of the cursor. In particular, I observed this behavior with a menu set as context menu to a QSystemTrayIcon. (Also, I wasn't sure which product this falls under.) STEPS TO REPRODUCE 1. Run attached app. 2. Right and Left click on tray icon. OBSERVED RESULT A right click open the context menu properly/normally. A left click calling QMenu::popup(QCursor::pos()) opens the context menu as window centered on application window. EXPECTED RESULT A left click opens the context menu at cursor position. SOFTWARE/OS VERSIONS Linux: Arch Linux (available in About System) KDE Plasma Version: 5.19.90 KDE Frameworks Version: 5.74.0 Qt Version: 5.15.1 ADDITIONAL INFORMATION I observed this same behavior on 5.19.5 and 5.19.90. -- You are receiving this mail because: You are watching all bug changes.