Load config after xwayland is created

This lets us run x commands on startup
This commit is contained in:
Drew DeVault 2015-08-09 14:03:54 -04:00
parent 4924628ac2
commit b075b06478
2 changed files with 5 additions and 2 deletions

View file

@ -29,7 +29,6 @@ void load_config() {
int main(int argc, char **argv) {
init_log(L_DEBUG); // TODO: Control this with command line arg
load_config();
init_layout();
static struct wlc_interface interface = {
@ -58,7 +57,10 @@ int main(int argc, char **argv) {
if (!wlc_init(&interface, argc, argv)) {
return 1;
}
setenv("DISPLAY", ":1", 1);
load_config();
wlc_run();
return 0;
}