Fix the improper focus and activation of pulldown menus

This commit is contained in:
smallmodel 2024-12-20 19:35:27 +01:00 committed by GitHub
parent e1be3c0fd1
commit 011f49616b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,6 +84,11 @@ UIPulldownMenu::UIPulldownMenu()
// uninitialized in original game // uninitialized in original game
m_submenuptr = NULL; m_submenuptr = NULL;
// Added in OPM
// This is so the window manager knows it can be activated
// and appropriately handle this as the first responder
m_canactivate = true;
} }
UIPulldownMenu::~UIPulldownMenu() UIPulldownMenu::~UIPulldownMenu()