mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
WindowServer+LibGUI: Implement minimizable property to windows
This commit is contained in:
parent
a641f4d213
commit
eab34a7de3
8 changed files with 46 additions and 8 deletions
|
@ -102,9 +102,13 @@ WSWindowFrame::WSWindowFrame(WSWindow& window)
|
|||
m_buttons.append(move(button));
|
||||
}
|
||||
|
||||
m_buttons.append(make<WSButton>(*this, *s_minimize_button_bitmap, [this](auto&) {
|
||||
m_window.set_minimized(true);
|
||||
}));
|
||||
if (window.is_minimizable()) {
|
||||
auto button = make<WSButton>(*this, *s_minimize_button_bitmap, [this](auto&) {
|
||||
m_window.set_minimized(true);
|
||||
});
|
||||
m_minimize_button = button.ptr();
|
||||
m_buttons.append(move(button));
|
||||
}
|
||||
}
|
||||
|
||||
WSWindowFrame::~WSWindowFrame()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue