mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:47:46 +00:00
WindowServer: Always update the maximize button icon when we should.
We were only updating it in the WSButton callback, not when changing the maximized state by calling WSWindow::set_maximized(). Fixes #119.
This commit is contained in:
parent
ae4ac524ad
commit
3fa0b6cd92
4 changed files with 16 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
|
||||
|
@ -24,7 +25,10 @@ public:
|
|||
Rect title_bar_icon_rect() const;
|
||||
Rect title_bar_text_rect() const;
|
||||
|
||||
void did_set_maximized(Badge<WSWindow>, bool);
|
||||
|
||||
private:
|
||||
WSWindow& m_window;
|
||||
Vector<OwnPtr<WSButton>> m_buttons;
|
||||
WSButton* m_maximize_button { nullptr };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue