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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 8e869e1a5..3ecebe5a2 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -343,6 +343,13 @@ static void
ephy_location_entry_autocompletion_show_alternatives (EphyLocationEntry *w)
{
EphyLocationEntryPrivate *p = w->priv;
+
+ /* Reset it because if we do a grab on click (like when pasting
+ text in the location entry, the entry will lose the release
+ event and will not reset it. It's what gtk does for the entry
+ popup */
+ GTK_ENTRY (w)->button = 0;
+
if (p->autocompletion_window)
{
ephy_autocompletion_window_show (p->autocompletion_window);