Fix drag and drop

GTK+ 3 started sending leave notifications upon starting a DND operation.
This commit is contained in:
Přemysl Eric Janouch 2015-01-20 07:41:04 +01:00
parent adead30747
commit 5b16953a2f
1 changed files with 9 additions and 1 deletions

View File

@ -425,7 +425,15 @@ on_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data)
static gboolean static gboolean
on_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) on_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data)
{ {
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)); symbol_deselect (LD_CATEGORY_SYMBOL_VIEW (widget));
}
return FALSE; return FALSE;
} }