mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
WindowServer: Expose window parent information and more modal improvements
* The parent information is necessary by the Taskbar to be able to determine a modal window's parent * Minimize and maximize modal window stacks together
This commit is contained in:
parent
2f731150a2
commit
bbdf0665fc
Notes:
sideshowbarker
2024-07-19 04:46:32 +09:00
Author: https://github.com/tomuta
Commit: bbdf0665fc
Pull-request: https://github.com/SerenityOS/serenity/pull/2820
8 changed files with 113 additions and 43 deletions
|
@ -145,7 +145,8 @@ public:
|
|||
bool is_visible() const { return m_visible; }
|
||||
void set_visible(bool);
|
||||
|
||||
bool is_modal() const { return m_modal && m_parent_window; }
|
||||
bool is_modal() const;
|
||||
bool is_modal_dont_unparent() const { return m_modal && m_parent_window; }
|
||||
|
||||
Gfx::IntRect rect() const { return m_rect; }
|
||||
void set_rect(const Gfx::IntRect&);
|
||||
|
@ -260,6 +261,7 @@ private:
|
|||
void add_child_window(Window&);
|
||||
void add_accessory_window(Window&);
|
||||
void ensure_window_menu();
|
||||
void modal_unparented();
|
||||
|
||||
ClientConnection* m_client { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue