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 <psychon@znc.in>
This commit is contained in:
parent
3233eb6cce
commit
e6037b4738
|
@ -643,9 +643,6 @@ main(int argc, char **argv)
|
||||||
/* init atom cache */
|
/* init atom cache */
|
||||||
atoms_init(globalconf.connection);
|
atoms_init(globalconf.connection);
|
||||||
|
|
||||||
/* init screens information */
|
|
||||||
screen_scan();
|
|
||||||
|
|
||||||
/* do this only for real screen */
|
/* do this only for real screen */
|
||||||
ewmh_init();
|
ewmh_init();
|
||||||
systray_init();
|
systray_init();
|
||||||
|
@ -702,6 +699,9 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
xdgWipeHandle(&xdg);
|
xdgWipeHandle(&xdg);
|
||||||
|
|
||||||
|
/* init screens information */
|
||||||
|
screen_scan();
|
||||||
|
|
||||||
/* scan existing windows */
|
/* scan existing windows */
|
||||||
scan(tree_c);
|
scan(tree_c);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue