From e9cbf88be45cc8c24a3619683a196ca3350590ec Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 9 Mar 2020 14:27:07 -0700 Subject: [PATCH] Wofi properly shuts down if its window is closed in normal window mode --- src/wofi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wofi.c b/src/wofi.c index 5b792a2..65421f1 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -1483,6 +1483,7 @@ void wofi_init(struct map* _config) { g_signal_connect(window, "key-press-event", G_CALLBACK(key_press), NULL); g_signal_connect(window, "focus-in-event", G_CALLBACK(focus), NULL); g_signal_connect(window, "focus-out-event", G_CALLBACK(focus), NULL); + g_signal_connect(window, "destroy", G_CALLBACK(do_exit), NULL); gdk_threads_add_timeout(filter_rate, do_search, NULL);