diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-09-20 12:47:14 +0000 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-09-20 12:48:08 +0000 |
commit | 69e4062eeb06a8ccc12127dac33a1935041419bb (patch) | |
tree | 50b7b89112cf6451becd72994598e1c3c7ee01a0 /src | |
parent | e6685efe1cf95c7f4235025dac1d1cf476fa0cf1 (diff) |
do the exit lag workaround in plug mode too
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.c | 11 |
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 (); } |