aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 0b482f4cb..0374d89a0 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -173,7 +173,14 @@ downloader_view_class_init (DownloaderViewClass *klass)
static void
show_downloader_cb (DownloaderView *dv)
{
- gtk_window_present (GTK_WINDOW (dv->priv->window));
+ if (!gtk_window_has_toplevel_focus (GTK_WINDOW (dv->priv->window)))
+ {
+ gtk_window_present (GTK_WINDOW (dv->priv->window));
+ }
+ else
+ {
+ gtk_widget_hide (dv->priv->window);
+ }
}
static gboolean