mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
implemented settings for window manager.
This commit is contained in:
parent
d4a16d6031
commit
63486b8438
5 changed files with 54 additions and 51 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue