summaryrefslogtreecommitdiff
path: root/LibGUI/GWindow.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-03 19:38:44 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-03 19:38:44 +0200
commita22774ee3fc609177a56c6d6ac992b86026abdbc (patch)
treeea4b2abe1e5b10a118ad434a4895235e364d8dd4 /LibGUI/GWindow.cpp
parent318db1e48e49a6eec5a27355e39a38cbc243475c (diff)
downloadserenity-a22774ee3fc609177a56c6d6ac992b86026abdbc.zip
Taskbar: Start working on a taskbar app.
I originally thought I would do this inside WindowServer, but let's try to make it as a standalone app that communicates with WindowServer instead. That will allow us to use LibGUI. :^)
Diffstat (limited to 'LibGUI/GWindow.cpp')
-rw-r--r--LibGUI/GWindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index a66e6002ae..6a3bb5a754 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -64,6 +64,7 @@ void GWindow::show()
request.window.opacity = m_opacity_when_windowless;
request.window.size_increment = m_size_increment;
request.window.base_size = m_base_size;
+ request.window.type = (WSAPI_WindowType)m_window_type;
ASSERT(m_title_when_windowless.length() < (ssize_t)sizeof(request.text));
strcpy(request.text, m_title_when_windowless.characters());
request.text_length = m_title_when_windowless.length();
@@ -140,6 +141,11 @@ void GWindow::set_rect(const Rect& a_rect)
GEventLoop::current().post_message_to_server(request);
}
+void GWindow::set_window_type(GWindowType window_type)
+{
+ m_window_type = window_type;
+}
+
void GWindow::set_override_cursor(GStandardCursor cursor)
{
if (!m_window_id)