From 5bf92be62211456a89ae2a439115eef07f553d41 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Tue, 19 Jan 2010 06:34:53 +0100 Subject: [PATCH] Don't show completion if the entry already lost focus --- midori/midori-locationaction.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 404bcc58..b3281e14 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -317,6 +317,9 @@ midori_location_action_popup_timeout_cb (gpointer data) #endif gint matches, height, screen_height; + if (!gtk_widget_has_focus (action->entry)) + return FALSE; + if (G_UNLIKELY (!action->popup)) { GtkWidget* popup;