From: Alexander Butenko Date: Tue, 19 Jan 2010 05:34:53 +0000 (+0100) Subject: Don't show completion if the entry already lost focus X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf92be62211456a89ae2a439115eef07f553d41;p=midori Don't show completion if the entry already lost focus --- 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;