summaryrefslogtreecommitdiff
path: root/liblogdiag/ld-category-symbol-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'liblogdiag/ld-category-symbol-view.c')
-rw-r--r--liblogdiag/ld-category-symbol-view.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/liblogdiag/ld-category-symbol-view.c b/liblogdiag/ld-category-symbol-view.c
index 4b19ca0..84f9c22 100644
--- a/liblogdiag/ld-category-symbol-view.c
+++ b/liblogdiag/ld-category-symbol-view.c
@@ -425,7 +425,15 @@ on_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data)
static gboolean
on_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data)
{
- symbol_deselect (LD_CATEGORY_SYMBOL_VIEW (widget));
+ switch (event->mode)
+ {
+ case GDK_CROSSING_GRAB:
+ case GDK_CROSSING_GTK_GRAB:
+ case GDK_CROSSING_STATE_CHANGED:
+ break;
+ default:
+ symbol_deselect (LD_CATEGORY_SYMBOL_VIEW (widget));
+ }
return FALSE;
}