summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WSWindow.h
diff options
context:
space:
mode:
authorChristopher Dumas <christopherdumas@gmail.com>2019-05-24 14:37:23 -0700
committerAndreas Kling <awesomekling@gmail.com>2019-05-24 23:37:23 +0200
commit957f8b84f2106ae9493baf02fa7fc7f7e486547a (patch)
tree8c397adc197ce58aee86b1996c61f1eea30b0d23 /Servers/WindowServer/WSWindow.h
parentcb9134a2ca2fa2a89f5e0ae6acee09345deebe8e (diff)
downloadserenity-957f8b84f2106ae9493baf02fa7fc7f7e486547a.zip
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.
Diffstat (limited to 'Servers/WindowServer/WSWindow.h')
-rw-r--r--Servers/WindowServer/WSWindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindow.h b/Servers/WindowServer/WSWindow.h
index 7ef0e27608..1f76a25c8a 100644
--- a/Servers/WindowServer/WSWindow.h
+++ b/Servers/WindowServer/WSWindow.h
@@ -34,6 +34,9 @@ public:
bool is_fullscreen() const { return m_fullscreen; }
+ bool show_titlebar() const { return m_show_titlebar; }
+ void set_show_titlebar(bool show) { m_show_titlebar = show; }
+
WSWindowFrame& frame() { return m_frame; }
const WSWindowFrame& frame() const { return m_frame; }
@@ -158,6 +161,7 @@ private:
bool m_minimized { false };
bool m_maximized { false };
bool m_fullscreen { false };
+ bool m_show_titlebar { true };
RetainPtr<GraphicsBitmap> m_backing_store;
RetainPtr<GraphicsBitmap> m_last_backing_store;
int m_window_id { -1 };