mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
WindowServer: Don't add maximize button to non-resizable windows.
The minimize button can stay though, since it doesn't change the window size, just the visibility. :^)
This commit is contained in:
parent
8c4b7fe385
commit
42cf09fdf1
4 changed files with 10 additions and 16 deletions
|
@ -28,10 +28,11 @@ WSWindow::WSWindow(CObject& internal_owner, WSWindowType type)
|
|||
WSWindowManager::the().add_window(*this);
|
||||
}
|
||||
|
||||
WSWindow::WSWindow(WSClientConnection& client, WSWindowType window_type, int window_id, bool modal)
|
||||
WSWindow::WSWindow(WSClientConnection& client, WSWindowType window_type, int window_id, bool modal, bool resizable)
|
||||
: m_client(&client)
|
||||
, m_type(window_type)
|
||||
, m_modal(modal)
|
||||
, m_resizable(resizable)
|
||||
, m_window_id(window_id)
|
||||
, m_icon(default_window_icon())
|
||||
, m_icon_path(default_window_icon_path())
|
||||
|
@ -261,13 +262,6 @@ void WSWindow::set_visible(bool b)
|
|||
invalidate();
|
||||
}
|
||||
|
||||
void WSWindow::set_resizable(bool resizable)
|
||||
{
|
||||
if (m_resizable == resizable)
|
||||
return;
|
||||
m_resizable = resizable;
|
||||
}
|
||||
|
||||
void WSWindow::invalidate()
|
||||
{
|
||||
WSWindowManager::the().invalidate(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue