Created attachment 136229 [details] Photo of the effect, private information blurred SUMMARY When using Kate/Kwrite on Wayland with two displays, the context menu for dropdowns appears in the wrong place STEPS TO REPRODUCE 1. Open Kate/Kwrite on a multi-display wayland configuration 2. Open a dropdown menu 3. OBSERVED RESULT The menu appears in a random part of the window EXPECTED RESULT The menu appears where it should SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.21.1 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
Created attachment 136230 [details] Same effect as observed on a different display
I would tend to say this is an issue in the wayland compositor, we don't place this menus explicitly.
I confirm, I have the same problem. Screenshot: https://i.imgur.com/YBF6xVU.png First display connected via hdmi, second via DP
See QTBUG-85297
KDE Neon: Plasma 5.22.0 Qt:5.15.3 still reproduced
Still happening on : KDE Plasma Version: 5.23.4 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2
This exact issue happens on openSUSE. Strangely enough, only Qt applications are affected. GTK applications such as GIMP show menus in the right place. Operating System: openSUSE Tumbleweed 20220624 KDE Plasma Version: 5.25.1 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.2 Kernel Version: 5.18.4-1-default (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i5-5200U CPU @ 2.20GHz Memory: 7.7 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 5500 Manufacturer: Hewlett-Packard Product Name: HP Pavilion 13 x360 PC System Version: 0977120000405F00000410180
Created attachment 150141 [details] Issue clearly visible on a standard KDE application, Kate. This is happening on all qt-based applications when Wayland is enabled and the application is on secondary (but selected as main) display. On the system's main display (e.g. laptop screen instead of HDMI-connected monitor) the issue is there but different, it shows menus very below the pointer.
Created attachment 152699 [details] badly position context menu with dolphin facing the same issue
Created attachment 152700 [details] badly position context menu with dolphin
The issue is resolved upstream however it is fixed in qt 6.4.0 RC1, 6.5.0 Beta1 which aren't yet relevant to KDE or other current qt5 applications. The only choice left to the user is disabling wayland.
There is a workaround on Reddit saying "As a temporary fix, I found that if I align both monitors to the top, then menus are shown in the correct position. My laptop monitor is 1366x768, and the second monitor is 1920x1080, placed to the right of the laptop." https://www.reddit.com/r/kde/comments/s1fqjj/comment/hu1ecdn/?utm_source=share&utm_medium=web2x&context=3 which fixed the issue here.