Bug 461500

Summary: In a multi display configuration the context menu opens on the wrong display
Product: [Plasma] kwin Reporter: Michael <egger.m>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: 5.26.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michael 2022-11-06 14:18:28 UTC
SUMMARY
In a multi display configuration the context menu opens on the wrong display (not where the cursor is) if the app occupies more than 50% on the other display. This has been tested and is reproducible with Konsole, Dolphin and Firefox.


STEPS TO REPRODUCE
1. Move Konsole or Dolphin between two displays and make sure the app covers slightly more on the other display
2. Right click to open the context menu

OBSERVED RESULT
The context menu is on the wrong display and not where the cursor is, making it almost impossible to click items

EXPECTED RESULT
The context menu should open where the cursor is

SOFTWARE/OS VERSIONS
Kernel Version 6.0.7-zen1
Graphics Driver: amdgpu
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99
Qt Version: 5.15.5

ADDITIONAL INFORMATION

I would like to provide a mp4 of the issue, but so far I'm not able to create a video where the cursor is captured and the context menu is visible
Comment 1 Nate Graham 2022-11-07 19:34:28 UTC
This is a Qt issue fixed in Qt 6 I *think* it was backported to the KDE Qt 5 patch collection; are you using its latest version?
Comment 2 Michael 2022-11-16 09:24:11 UTC
(In reply to Nate Graham from comment #1)
> This is a Qt issue fixed in Qt 6 I *think* it was backported to the KDE Qt 5
> patch collection; are you using its latest version?

I upgraded to the latest pre-release version of kde-frameworks-5.100.0 and Qt 5.17.9999 from https://github.com/gentoo/qt but the issue still persists.
If you have some patches that could fix it I'm happy to test them out.
Comment 3 Nate Graham 2022-11-16 17:22:16 UTC
Ok, thanks!
Comment 4 David Edmundson 2023-01-26 16:07:13 UTC
This is fixed in upstream Qt