mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
WindowServer: Make it possible to turn off window title bars (#88)
Also, Launcher now does not use titlebars. Only check if titlebar should be shown if the window type works with that.
This commit is contained in:
parent
cb9134a2ca
commit
957f8b84f2
9 changed files with 54 additions and 11 deletions
|
@ -581,7 +581,7 @@ private:
|
|||
|
||||
class WSAPICreateWindowRequest : public WSAPIClientRequest {
|
||||
public:
|
||||
WSAPICreateWindowRequest(int client_id, const Rect& rect, const String& title, bool has_alpha_channel, bool modal, bool resizable, bool fullscreen, float opacity, const Size& base_size, const Size& size_increment, WSWindowType window_type, Color background_color)
|
||||
WSAPICreateWindowRequest(int client_id, const Rect& rect, const String& title, bool has_alpha_channel, bool modal, bool resizable, bool fullscreen, bool show_titlebar, float opacity, const Size& base_size, const Size& size_increment, WSWindowType window_type, Color background_color)
|
||||
: WSAPIClientRequest(WSEvent::APICreateWindowRequest, client_id)
|
||||
, m_rect(rect)
|
||||
, m_title(title)
|
||||
|
@ -590,6 +590,7 @@ public:
|
|||
, m_modal(modal)
|
||||
, m_resizable(resizable)
|
||||
, m_fullscreen(fullscreen)
|
||||
, m_show_titlebar(show_titlebar)
|
||||
, m_size_increment(size_increment)
|
||||
, m_base_size(base_size)
|
||||
, m_window_type(window_type)
|
||||
|
@ -603,6 +604,7 @@ public:
|
|||
bool is_modal() const { return m_modal; }
|
||||
bool is_resizable() const { return m_resizable; }
|
||||
bool is_fullscreen() const { return m_fullscreen; }
|
||||
bool show_titlebar() const { return m_show_titlebar; }
|
||||
float opacity() const { return m_opacity; }
|
||||
Size size_increment() const { return m_size_increment; }
|
||||
Size base_size() const { return m_base_size; }
|
||||
|
@ -617,6 +619,7 @@ private:
|
|||
bool m_modal { false };
|
||||
bool m_resizable { false };
|
||||
bool m_fullscreen { false };
|
||||
bool m_show_titlebar { true };
|
||||
Size m_size_increment;
|
||||
Size m_base_size;
|
||||
WSWindowType m_window_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue