aboutsummaryrefslogtreecommitdiffstats
path: root/swaylock/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaylock/main.c')
-rw-r--r--swaylock/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index 9b14086d..b20883af 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -24,7 +24,7 @@ enum scaling_mode {
24 SCALING_MODE_TILE, 24 SCALING_MODE_TILE,
25}; 25};
26 26
27void sway_terminate(void) { 27void sway_terminate(int exit_code) {
28 int i; 28 int i;
29 for (i = 0; i < surfaces->length; ++i) { 29 for (i = 0; i < surfaces->length; ++i) {
30 struct window *window = surfaces->items[i]; 30 struct window *window = surfaces->items[i];
@@ -32,7 +32,7 @@ void sway_terminate(void) {
32 } 32 }
33 list_free(surfaces); 33 list_free(surfaces);
34 registry_teardown(registry); 34 registry_teardown(registry);
35 exit(EXIT_FAILURE); 35 exit(exit_code);
36} 36}
37 37
38char *password; 38char *password;