aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-10-02 17:29:40 -0500
committerFurkan Sahin <furkan-dev@proton.me>2016-10-02 17:29:40 -0500
commit4a1b4a3a60dd7b94a768501840c35b68f06b2c31 (patch)
tree68a34cf4b5e032182d49931647b49a61707206bf
parent1c4cffa2043447c6e9e108b5ac3227c449efbbc9 (diff)
moved ipc_init above config file processing.
This is necessary because commands in the config file (mode for instance) emit ipc events, and if ipc_init has not been called the ipc_clients_list is not initialized, and we segfault. This fixes that bug.
-rw-r--r--sway/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/main.c b/sway/main.c
index 660da18c..b924a9ab 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -213,6 +213,8 @@ int main(int argc, char **argv) {
init_layout();
+ ipc_init();
+
if (validate) {
bool valid = load_main_config(config_path, false);
return valid ? 0 : 1;
@@ -226,8 +228,6 @@ int main(int argc, char **argv) {
free(config_path);
}
- ipc_init();
-
if (!terminate_request) {
wlc_run();
}