diff --git a/sway/main.c b/sway/main.c index a9438926..6618348e 100644 --- a/sway/main.c +++ b/sway/main.c @@ -26,7 +26,6 @@ #include "stringop.h" #include "util.h" -static bool terminate_request = false; static int exit_value = 0; static struct rlimit original_nofile_rlimit = {0}; struct sway_server server = {0}; @@ -38,7 +37,6 @@ void sway_terminate(int exit_code) { exit(exit_code); } else { // Running as server - terminate_request = true; exit_value = exit_code; ipc_event_shutdown("exit"); wl_display_terminate(server.wl_display);