mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Load config after xwayland is created
This lets us run x commands on startup
This commit is contained in:
parent
4924628ac2
commit
b075b06478
2 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue