-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PopupMenu does not highlight items on mouse over if a submenu is opened #70361
Comments
I think what's happens is The viewport of the submenu gets window focus when it opens, so mouse move events are not received by the unfocused viewport (parent menu). |
Can confirm this from my testing. Although the |
I think this bug occurs since this change (from #67903): godot/platform/windows/display_server_windows.cpp Lines 3067 to 3073 in 63b5adf
Is there a reason for calling the event on the focused window instead of |
This change was necessary so that |
Does this bug occur with X11? |
I can't replicate this bug on X11 Xfce with v4.0.beta.custom_build [a43db5a] |
Was about to open an issue about this.. Godot is only running on my old-ish Windows 10 PC, haven't tried on any other device or OS.
Can replicate it everywhere: on editor menus and in-game menus for both dev run and exported build. Only happens when sub-menu is opened, if it stays closed, then everything is smooth, even submenu list item hover. So the focus seems like a plausible cause, a test to confirm focus: if submenu opens, then letter key search searches only submenu. Setting the opening delay won't have any effect, as long as submenu opens then discussed bugs happens. |
Adding just in case it clears something up: setting |
Tested on Linux, KDE Wayland with current 4.3.dev (0246230). I can reproduce the issue in single window mode with both Wayland and X11. I see no change from #88392 on Linux. I assume #88392 might be fixing the Windows multi-window issue, and may not fix it for single-window on Windows either? @bruvzg |
Godot version
v4.0.beta.custom_build [2a04b18] (also present in the v4.0 official beta build)
System information
Windows 10
Issue description
PopupMenu does not highlight items on mouse over if a submenu is opened:
For comparison, here is an example of a popup menu in vscode to show how it should behave (items are highlighted even if the submenu is opened):
Steps to reproduce
Open a PopupMenu and a submenu in the editor, and mouse over items in the popup_menu while the submenu is opened.
Minimal reproduction project
Any project.
The text was updated successfully, but these errors were encountered: