I've two monitor setup which are positioned as below ____________________________________________________ | || . | | || . | | || A . | | || . | | || . C | |________________||................. | | . | | B . | |________________________________| Now for explanation lets divide the screen 2 in 3 parts. Where Area A is similarly sized as Screen 1 (smaller screen.) Now if I do right click in Area B, its contextmenu appears displaced on area C. context menu in Area A and C are correctly positioned but not ones in area B.
please check with WAYLAND_DEBUG=1 what's the transient offset position passed to the context menu.
For record, [671827.448] -> wl_shell_surface@71.set_popup(wl_seat@7, 26381, wl_surface@47, 1366, 798, 0) [672702.706] -> wl_shell_surface@84.set_popup(wl_seat@7, 26383, wl_surface@47, 1366, 798, 0) Popup is positioned at 1366x798 which is original height of click but offset by size of screen 0.
Qt sends stupid coordinates. Not much we can do about it. We can try to ensure that popups are always positioned on top of the window at least
Same issue or root cause? https://bugs.kde.org/show_bug.cgi?id=387896 That one happens on a single-screen setup, though.
(In reply to Nate Graham from comment #4) > Same issue or root cause? https://bugs.kde.org/show_bug.cgi?id=387896 > > That one happens on a single-screen setup, though. That's a different issue.
See bug: https://bugreports.qt.io/browse/QTBUG-53022 https://codereview.qt-project.org/#/c/157174/19 Doesn't seem to be moving much though.
(In reply to Aleix Pol from comment #6) > See bug: > https://bugreports.qt.io/browse/QTBUG-53022 > https://codereview.qt-project.org/#/c/157174/19 > > Doesn't seem to be moving much though. Seems to be closed for some time now. Is this bug still happening?
Created attachment 135258 [details] Context Menu wrong
Created attachment 135260 [details] Wayland Debug Log of starting Konsole
I have the same issue with Latest Plasma 50.20.90 -> See attachment. I only have this with hidpi screen and only in wayland. If i set all 3 screens to 1080p, everything is fine, If i set middle screen to 4k, its wrong. If i set middle screen to 4k and scale to 175% even more is wrong.. Log with Operating System: Arch Linux KDE Plasma Version: 5.20.90 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.10-arch1-1 OS Type: 64-bit Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: Radeon RX 580 Series
Operating System: KDE Neon KDE Plasma Version: 5.23.0 Still being reproduced. However, now horizontal positioning works correctly, but not vertical positioning.
It's a Qt bug that can't be worked around in kwin.
*** Bug 437648 has been marked as a duplicate of this bug. ***