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:
Tom 2020-07-15 17:40:52 -06:00 committed by Andreas Kling
commit bbdf0665fc
Notes: sideshowbarker 2024-07-19 04:46:32 +09:00
8 changed files with 113 additions and 43 deletions

View file

@ -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 };