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

LibGUI: Allow blocking CommandPalette/EmojiInput on a per Window basis

Instead of having to negate every focusable widget or textbox, let
windows override all their widgets. These two Dialogs now block
themselves and each other.
This commit is contained in:
thankyouverycool 2022-09-09 07:21:31 -04:00 committed by Tim Flynn
parent bfcb4d88cf
commit f8e65d24cf
5 changed files with 20 additions and 3 deletions

View file

@ -225,6 +225,12 @@ public:
Menubar& menubar() { return *m_menubar; }
Menubar const& menubar() const { return *m_menubar; }
void set_blocks_command_palette(bool b) { m_blocks_command_palette = b; }
bool blocks_command_palette() const { return m_blocks_command_palette; }
void set_blocks_emoji_input(bool b) { m_blocks_emoji_input = b; }
bool blocks_emoji_input() const { return m_blocks_emoji_input; }
protected:
Window(Core::Object* parent = nullptr);
virtual void wm_event(WMEvent&);
@ -307,6 +313,8 @@ private:
bool m_visible_for_timer_purposes { true };
bool m_visible { false };
bool m_moved_by_client { false };
bool m_blocks_command_palette { false };
bool m_blocks_emoji_input { false };
};
}