mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Rearrange main.c some more
This commit is contained in:
parent
7427ce8930
commit
3f3d1ffee4
1 changed files with 4 additions and 4 deletions
|
@ -12,17 +12,17 @@
|
||||||
static void sigchld_handle(int signal);
|
static void sigchld_handle(int signal);
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
init_log(L_DEBUG); // TODO: Control this with command line arg
|
|
||||||
init_layout();
|
|
||||||
|
|
||||||
/* Signal handling */
|
/* Signal handling */
|
||||||
signal(SIGCHLD, sigchld_handle);
|
signal(SIGCHLD, sigchld_handle);
|
||||||
|
|
||||||
setenv("WLC_DIM", "0", 0);
|
setenv("WLC_DIM", "0", 0);
|
||||||
|
/* Changing code earlier than this point requires detailed review */
|
||||||
if (!wlc_init(&interface, argc, argv)) {
|
if (!wlc_init(&interface, argc, argv)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
setenv("DISPLAY", ":1", 1);
|
|
||||||
|
init_log(L_DEBUG); // TODO: Control this with command line arg
|
||||||
|
init_layout();
|
||||||
|
|
||||||
if (!load_config()) {
|
if (!load_config()) {
|
||||||
sway_log(L_ERROR, "Error(s) loading config!");
|
sway_log(L_ERROR, "Error(s) loading config!");
|
||||||
|
|
Loading…
Reference in a new issue