aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-location-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/ephy-location-entry.c')
-rw-r--r--lib/widgets/ephy-location-entry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 7c79b9619..94c696ba8 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -379,6 +379,11 @@ insert_text_cb (GtkWidget *editable,
EphyLocationEntry *w)
{
EphyLocationEntryPrivate *p = w->priv;
+ GtkWidget *window;
+
+ window = gtk_widget_get_toplevel (editable);
+ g_return_if_fail (window != NULL);
+ if (!GTK_WINDOW (window)->has_focus) return;
if (p->going_to_site) return;