Bug 446097 - Dropdown Menu Offsets
Summary: Dropdown Menu Offsets
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-26 03:43 UTC by mark.tustin
Modified: 2023-01-28 22:11 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Dropdown menu is offset (871.18 KB, image/png)
2021-11-26 03:43 UTC, mark.tustin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mark.tustin 2021-11-26 03:43:58 UTC
Created attachment 143954 [details]
Dropdown menu is offset

SUMMARY
When selecting an option from an applications menu bar, the dropdown menu is offset from the menu button.

I attached a screenshot demonstrating it in action.

STEPS TO REPRODUCE
1. Open an application. I used kwallet in this example, but happens across apps. 
2. Select an option in menu bar.

OBSERVED RESULT
The dropdown is not underneath the menu option.

EXPECTED RESULT
The dropdown is underneath the menu option.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This is on wayland on a multi-monitor setup. I don't recall noticing this on 5.22...
Comment 1 personalizedrefrigerator 2021-12-02 14:09:51 UTC
Can reproduce. See also https://bugs.kde.org/show_bug.cgi?id=429451
Comment 2 mark.tustin 2021-12-03 00:25:08 UTC
Just doing a follow-up. I think there was a slight bug in the way KDE was handling multi-monitors that was causing this issue.

I checked my Display Settings and found one monitor was overlapping another (don't know how that happened). I resolved the overlap and I haven't seen this issue for a few days. 

I cannot reproduce the overlap of the monitors in Display Settings at this time. I will attempt to break it again by messing with some scaling options and dragging.
Comment 3 Sander van Grieken 2021-12-09 12:24:39 UTC
Also can reproduce.

- two monitors
- no overlap
- 1920x1080 left of 3840x2160 monitor
- left monitor shifts menu down
- right monitor shifts menu right (similar to reporter's screenshot)

Right momnitor has 150% scaling, although setting it to 100% during the session doesn't change the problem
Comment 4 Maximiliano Bertacchini 2023-01-28 17:05:40 UTC
This is still an issue with KDE 5.27 beta on Kubuntu 22.10 on Wayland. Two screens at 100% scale, no overlapping. Menus on the left screen are offset towards the bottom of the screen only when the left screen's top is aligned *below* the top of the right screen, and the offset appears to be proportional to that between the tops of both screens. Menus on the right screen appear at the rightmost edge. Otoh, menus look fine if the left screen is aligned *higher* than the right screen.

This also happens if we add a 3rd screen (100% scale) to the right whose top is *above* the top of the other screens. In summary, it appears like menus break if the three monitors are aligned in an "upwards staircase" fashion from left to right; but it's fine if monitors are aligned like "downwards stairs" (also from left to right).

Context menus seem unaffected (e.g. right click in Kate). GTK apps seem unaffected as well (tried gedit and firefox fwiw).
Comment 5 David Edmundson 2023-01-28 22:11:48 UTC
Please see https://bugreports.qt.io/browse/QTBUG-85297 which we fixed in newer Qt