Fix DropDown submenus on Linux/Wayland (#13563)

Hovering a group item (e.g. "Generic" in the filament list) now opens
its submenu correctly. The dropdown stays usable while moving the
cursor between the parent list and the submenu, and dismisses normally
when the user clicks outside.
This commit is contained in:
SoftFever
2026-05-11 01:32:59 +08:00
committed by GitHub
parent d37444b34a
commit c0ae2bda99
4 changed files with 47 additions and 1 deletions
+2 -1
View File
@@ -86,7 +86,8 @@ void PopupWindow::OnMouseEvent2(wxMouseEvent &evt)
void PopupWindow::topWindowActiavate(wxActivateEvent &event)
{
event.Skip();
if (!event.GetActive() && IsShown()) DismissAndNotify();
if (!event.GetActive() && IsShown() && ShouldDismissOnTopWindowDeactivate())
DismissAndNotify();
}
#endif