aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c
index cd1f872..7b327e6 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -401,6 +401,10 @@ chain(WebKitWebView *page, GArray *argv, GString *result) {
void
close_uzbl (WebKitWebView *page, GArray *argv, GString *result) {
(void)page; (void)argv; (void)result;
+ // hide window a soon as possible to avoid getting stuck with a
+ // non-response window in the cleanup steps
+ if (uzbl.gui.main_window)
+ gtk_widget_destroy(uzbl.gui.main_window);
gtk_main_quit ();
}