1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +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:
Andreas Kling 2019-05-13 00:48:54 +02:00
parent 8c4b7fe385
commit 42cf09fdf1
4 changed files with 10 additions and 16 deletions

View file

@ -16,7 +16,7 @@ class WSMouseEvent;
class WSWindow final : public CObject, public InlineLinkedListNode<WSWindow> {
public:
WSWindow(WSClientConnection&, WSWindowType, int window_id, bool modal);
WSWindow(WSClientConnection&, WSWindowType, int window_id, bool modal, bool resizable);
WSWindow(CObject&, WSWindowType);
virtual ~WSWindow() override;
@ -64,7 +64,6 @@ public:
bool is_modal() const { return m_modal; }
bool is_resizable() const { return m_resizable; }
void set_resizable(bool);
Rect rect() const { return m_rect; }
void set_rect(const Rect&);