From b43739921cbadf43c96f0d6618d51b16cf07c1b8 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 26 Jan 2020 11:22:29 -0800 Subject: [PATCH] Pressing escape now exits with error code 1 --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 5067700..068077b 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -713,7 +713,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) { (void) data; switch(event->key.keyval) { case GDK_KEY_Escape: - exit(0); + exit(1); break; case GDK_KEY_Return: mod_shift = (event->key.state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK;