summaryrefslogtreecommitdiff
path: root/LibGUI
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 /LibGUI
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 'LibGUI')
-rw-r--r--LibGUI/GWindow.cpp1
-rw-r--r--LibGUI/GWindow.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index da6ea1fccd..2f6c0207fa 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -62,6 +62,7 @@ void GWindow::show()
request.window.modal = m_modal;
request.window.resizable = m_resizable;
request.window.fullscreen = m_fullscreen;
+ request.window.show_titlebar = m_show_titlebar;
request.window.opacity = m_opacity_when_windowless;
request.window.background_color = m_background_color.value();
request.window.size_increment = m_size_increment;
diff --git a/LibGUI/GWindow.h b/LibGUI/GWindow.h
index b3f113d0df..c1b3d10cd3 100644
--- a/LibGUI/GWindow.h
+++ b/LibGUI/GWindow.h
@@ -46,6 +46,9 @@ public:
String title() const;
void set_title(const String&);
+ bool show_titlebar() const { return m_show_titlebar; };
+ void set_show_titlebar(bool show) { m_show_titlebar = show; };
+
Color background_color() const { return m_background_color; }
void set_background_color(Color color) { m_background_color = color; }
@@ -154,4 +157,5 @@ private:
bool m_modal { false };
bool m_resizable { true };
bool m_fullscreen { false };
+ bool m_show_titlebar { true };
};