aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/commands.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/commands.c b/src/commands.c
index 27b6606..6438789 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -402,10 +402,13 @@ 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);
+ // 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);
+ else if (uzbl.gui.plug)
+ gtk_widget_destroy(uzbl.gui.plug);
+
gtk_main_quit ();
}