[libdazzle] suggestions: only display suggestions if entry is focused
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] suggestions: only display suggestions if entry is focused
- Date: Sun, 27 Jan 2019 20:38:29 +0000 (UTC)
commit 2d937973824e3a4247bf01775f93ecf00b0d5296
Author: Christian Hergert <chergert redhat com>
Date: Sun Jan 27 12:37:54 2019 -0800
suggestions: only display suggestions if entry is focused
This fixes an issue where an async items-changed could cause the results
to be displayed even after focus left the entry. This can happen when
results are slow to generate.
Fixes #30
src/suggestions/dzl-suggestion-popover.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/suggestions/dzl-suggestion-popover.c b/src/suggestions/dzl-suggestion-popover.c
index f88989b..7cd5437 100644
--- a/src/suggestions/dzl-suggestion-popover.c
+++ b/src/suggestions/dzl-suggestion-popover.c
@@ -815,7 +815,7 @@ dzl_suggestion_popover_items_changed (DzlSuggestionPopover *self,
G_CALLBACK (dzl_suggestion_popover_notify_child_revealed),
self);
}
- else
+ else if (self->entry_focused)
{
dzl_suggestion_popover_popup (self);
self->popup_requested = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]