1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

Taskbar: Update and clear taskbar button rectangles

We need to update all button rectangles when the layout changed.
We also need to clear the taskbar button rectangle when we
remove a modal window button, so that WindowServer uses the
parent's taskbar button rectangle for the minimize animation.
This commit is contained in:
Tom 2020-08-18 13:35:34 -06:00 committed by Andreas Kling
parent 2552e3be00
commit 4897eb8c3e
4 changed files with 33 additions and 4 deletions

View file

@ -43,7 +43,7 @@ private:
void on_screen_rect_change(const Gfx::IntRect&);
NonnullRefPtr<GUI::Button> create_button(const WindowIdentifier&);
void add_window_button(::Window&, const WindowIdentifier&);
void remove_window_button(::Window&);
void remove_window_button(::Window&, bool);
void update_window_button(::Window&, bool);
::Window* find_window_owner(::Window&) const;