You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a sub-menu of a PopupMenu and then selecting one of its options prints an error message to the console. Signals are fired correctly and the menu displays correctly, nothing seems to be wrong beyond just the error message:
E 0:00:06:0394 window_get_popup_safe_rect: Condition "!windows.has(p_window)" is true. Returning: Rect2i()
<C++ Source> platform/windows/display_server_windows.cpp:2361 @ window_get_popup_safe_rect()
With the recently merged #78476, the error output has changed into:
E 0:00:04:0268 subwindow_get_popup_safe_rect: Condition "index == -1" is true. Returning: Rect2i()
<C++ Source> scene/main/viewport.cpp:3535 @ subwindow_get_popup_safe_rect()
At the time, PopupMenu::_parent_focused gets executed, Rect2 safe_area = get_embedder()->subwindow_get_popup_safe_rect(this); fails, because that popup was already closed previously.
Currently the following doesn't work in the case of embedded windows:
Click on a menu-item that opens a submenu
Click again on the same menu-item that opens a submenu
Current behavior: The submenu closes and opens
Expected behavior: The submenu should stay open
Godot version
4.0.2
System information
Windows 10
Issue description
Creating a sub-menu of a
PopupMenu
and then selecting one of its options prints an error message to the console. Signals are fired correctly and the menu displays correctly, nothing seems to be wrong beyond just the error message:Steps to reproduce
Minimal reproduction project
SubMenuProblem.zip
The text was updated successfully, but these errors were encountered: