1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:37:46 +00:00

WindowServer: Make Menus the input window when showing them

This solves a problem where windows don't receive a WindowInputLeft
event when popup menus are opened. This prevented ComboBox being
closed when right clicking the application on the task bar.
This commit is contained in:
Tom 2020-07-15 10:13:13 -06:00 committed by Andreas Kling
parent 59596ff816
commit 8286e72187
8 changed files with 125 additions and 62 deletions

View file

@ -244,7 +244,7 @@ public:
const Vector<WeakPtr<Window>>& accessory_windows() const { return m_accessory_windows; }
void set_accessory(bool accessory) { m_accessory = accessory; }
bool is_accessory() const { return m_accessory; }
bool is_accessory() const;
bool is_accessory_of(Window&) const;
void set_frameless(bool frameless) { m_frameless = frameless; }