]> spindle.queued.net Git - midori/commitdiff
Don't show completion if the entry already lost focus
authorAlexander Butenko <a.butenka@gmail.com>
Tue, 19 Jan 2010 05:34:53 +0000 (06:34 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 19 Jan 2010 05:34:53 +0000 (06:34 +0100)
midori/midori-locationaction.c

index 404bcc58f1ef27f1b64f35ed340260dca033dd7b..b3281e14b5050f2ea51ac84fa828de53da3c3ab6 100644 (file)
@@ -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;