Bug 452460

Summary: Context menus and Popup menus in QT apps appear in the wrong position when the resolutions are different on multi screen setup - Wayland
Product: [Plasma] kwin Reporter: Rurigk <rurigk>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, nate, sam
Priority: NOR    
Version First Reported In: 5.24.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
See Also: https://bugreports.qt.io/browse/QTBUG-102982
https://bugreports.qt.io/browse/QTBUG-49663
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screen configuration

Description Rurigk 2022-04-10 10:52:06 UTC
Created attachment 148084 [details]
Screen configuration

Context menus and Popup menus in QT apps appear in the wrong position when the resolutions are different on multi screen setup


STEPS TO REPRODUCE
1. Use multi screen setup with different screens resolutions (ie 1920x1080, 3840x2160)
2. Put both screens at 100% scale
3. Put the smaller screen at the bottom left side of the bigger screen (see attachment)
4. Open any Qt app or some wxwidgets (Filezilla) and open a menu

OBSERVED RESULT
The menu appears the wrong position

EXPECTED RESULT
The menu appears at the mouse position (Context menus) or below the app menu

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro

KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Wayland

ADDITIONAL INFORMATION
Both screens are connected via HDMI

The wrong behaviour is not present when the smaller screen is at the top left, top right of bottom right of the bigger screen

The wrong behaviour is not present when the bigger screen (3840x2160) scale is set to 200% because that matches the smaller screen (1920x1080)

The wrong behaviour is not present if only one screen is connected

The bug affects some apps that are not using QT like Filezilla but don't affect GTK apps like Firefox

This is my first bug report, if the product is wrong, please move to the right product (i found similar bugs in this product)
I opened this bug report since the other ones are marked as RESOLVED and the issue still persist
Comment 1 David Edmundson 2022-05-03 10:38:52 UTC
Nate, please do not move bugs that obviously not kwin's fault to kwin! We're not a dumping ground for anything wayland.

As for the bug report. See the See Also links in the header