From 69e4062eeb06a8ccc12127dac33a1935041419bb Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Tue, 20 Sep 2011 12:47:14 +0000 Subject: do the exit lag workaround in plug mode too --- src/commands.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') 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 (); } -- cgit v1.2.3