Bug 478922 - Global menu when hovering over sub menu with child menu. The child menu on first hover does not detect the edge of the screen.
Summary: Global menu when hovering over sub menu with child menu. The child menu on fi...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Menu widget (other bugs)
Version First Reported In: 5.91.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-23 08:57 UTC by Sjoerd
Modified: 2025-04-05 21:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:
s21926402: Wayland+
s21926402: X11+


Attachments
top bar layout to recreate the issue. Also happens with a clean top bar with only 'Global Menu' (24.48 KB, image/png)
2023-12-23 08:57 UTC, Sjoerd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sjoerd 2023-12-23 08:57:31 UTC
Created attachment 164394 [details]
top bar layout to recreate the issue. Also happens with a clean top bar with only 'Global Menu'

SUMMARY
The layout that I am using is fairly peculiar. It basically amounts to a vertically flipped macOS layout with the global menu on the right side of a topbar. This mostly works as expected except that when accessing a sub drop down from within a drop down from the global menu, on first hover it doesn't detect the edge of the screen it gets displayed on the right side. Meaning the sub drop-down gets cutoff by the screen. However when I hover over the same option again in the drop down it will detect the edge of the screen and display on the left side like it should.

This is recreated on both plasma 5 and 6's most recent releases. Also on both wayland and X11

STEPS TO REPRODUCE
1. Have a layout as shown in the provided image with a bar that has the 'Global Menu' on the right side of the screen.
2. Open a program that supports the 'Global Menu' for example 'Kate'
3. Once open find a drop down from the Global menu that has an arrow pointing to the right of it indicating a sub-menu. 
4. Hover over it. A sub-menu should now appear to the right side of the hovered over menu item. If the drop down is close enough to the edge and/or if the menu sub-menu is sufficiently big enough it should fall off the monitor.
5. Stop hovering over the menu item periodically to disappear the sub-menu. Hover back over it again to make it reappear. It should now appear on the left side of the drop down. This also works when keeping the application using the global menu in focus and leaving the drop down entirely and going back to the same menu item again.

OBSERVED RESULT
On First hover the sub menu appears on the right, falling off of the screen.
On Second hover of the same menu item it appears on the left as it should.

EXPECTED RESULT
The sub menu of the drop down from the 'Global Menu' should appear on the left of the drop down on first hover.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.6.7-arch1-1 (64-bit)
Graphics Platform: X11
System Version: -CF

OTHER OS
Operating System: Arch Linux 
KDE Plasma Version: 5.91.0
KDE Frameworks Version: Cant check bc system setting is broken(Ill file a bug report for that).
Qt Version: 6.6.1
Kernel Version: 6.6.8-arch1-1 (64-bit)
Graphics Platform: Wayland
System Version: -CF
Comment 1 Sjoerd 2023-12-23 09:07:35 UTC
Some already reported the issue I mentioned at the end of my post. Its bug 478910

Also the framework version is 5.247.0
Comment 2 Sjoerd 2023-12-23 09:14:07 UTC
Also the qml version of plasma 6 was 6.7.0.
Sorry for the excessive corrections.
Comment 3 Nate Graham 2025-04-05 21:00:27 UTC
Thanks for the detailed bug report, and sorry we were not able to get to this yet. Using those steps, I can't reproduce this issue with Plasma built from git master, which will become Plasma 6.4 in 2 months.