diff options
author | Drew DeVault <[email protected]> | 2015-08-09 14:03:54 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-09 14:03:54 -0400 |
commit | b075b06478cfc3c9b4f37ce171d8cde9b09f30ae (patch) | |
tree | b1ce75c334c7ef29c8c1c5f8b88488963f5207d8 /sway/main.c | |
parent | 4924628ac241530d8e823e69d542f3e846d8b10c (diff) |
Load config after xwayland is created
This lets us run x commands on startup
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c index 03c7e2b3..6e66ef3a 100644 --- a/sway/main.c +++ b/sway/main.c @@ -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; } |