From e6037b47385bb908e56ee8aaf32097b971790c38 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 26 Mar 2016 18:38:44 +0100 Subject: [PATCH] Only define screens after the config is loaded This gives us the worst of both worlds: We still restart on RandR screen changes and the information about screens isn't available during startup. However, it's a step in the right direction, because all Lua code will now have to handle kind-of-dynamic screen changes. Signed-off-by: Uli Schlachter --- awesome.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index b16f23950..60aa2dc32 100644 --- a/awesome.c +++ b/awesome.c @@ -643,9 +643,6 @@ main(int argc, char **argv) /* init atom cache */ atoms_init(globalconf.connection); - /* init screens information */ - screen_scan(); - /* do this only for real screen */ ewmh_init(); systray_init(); @@ -702,6 +699,9 @@ main(int argc, char **argv) xdgWipeHandle(&xdg); + /* init screens information */ + screen_scan(); + /* scan existing windows */ scan(tree_c);