summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/main.cpp
diff options
context:
space:
mode:
authorChristopher Dumas <christopherdumas@gmail.com>2019-05-25 09:26:23 -0700
committerAndreas Kling <awesomekling@gmail.com>2019-05-27 21:40:53 +0200
commit63486b8438a9d1ec001adc1476a75b276ee308b3 (patch)
treed8aa6ee19f764657c6993cf1aac1256aae9a04c8 /Servers/WindowServer/main.cpp
parentd4a16d6031397f458c57b307c7a7b1f8e51736de (diff)
downloadserenity-63486b8438a9d1ec001adc1476a75b276ee308b3.zip
implemented settings for window manager.
Diffstat (limited to 'Servers/WindowServer/main.cpp')
-rw-r--r--Servers/WindowServer/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Servers/WindowServer/main.cpp b/Servers/WindowServer/main.cpp
index b8320b1858..d4e889c1f5 100644
--- a/Servers/WindowServer/main.cpp
+++ b/Servers/WindowServer/main.cpp
@@ -2,6 +2,7 @@
#include <WindowServer/WSWindowManager.h>
#include <WindowServer/WSEventLoop.h>
#include <WindowServer/WSCompositor.h>
+#include <LibCore/CConfigFile.h>
#include <signal.h>
#include <stdio.h>
@@ -18,7 +19,10 @@ int main(int, char**)
}
WSEventLoop loop;
- WSScreen screen(1024, 768);
+
+ auto wm_config = CConfigFile::get_for_app("WindowManager");
+ WSScreen screen(wm_config->read_num_entry("Screen", "Width", 1024),
+ wm_config->read_num_entry("Screen", "Height", 768));
WSCompositor::the();
WSWindowManager window_manager;