summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/main.cpp
diff options
context:
space:
mode:
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;