screen: Disable screen creation when --screen manual is used.

Now that the previous commits add a proper fallback and a way to test
this, enable the second half.

As long as the default screen mode (`--screen auto`) *or* the `rc.lua`
doesn't execute too much code in the global context, this wont break
much.
This commit is contained in:
Emmanuel Lepage Vallee 2019-06-15 01:14:27 -04:00
parent 067f8f4ebf
commit f6cc35cecc
1 changed files with 8 additions and 2 deletions

View File

@ -912,8 +912,14 @@ main(int argc, char **argv)
ewmh_init_lua();
/* Parse and run configuration file before adding the screens */
if (globalconf.no_auto_screen && !luaA_parserc(&xdg, confpath))
fatal("couldn't find any rc file");
if (globalconf.no_auto_screen)
{
/* Disable automatic screen creation, awful.screen has a fallback */
globalconf.ignore_screens = true;
if(!luaA_parserc(&xdg, confpath))
fatal("couldn't find any rc file");
}
/* init screens information */
screen_scan();