Index: gtk+-2.8.10/gtk/gtktextview.c
===================================================================
--- gtk+-2.8.10.orig/gtk/gtktextview.c
+++ gtk+-2.8.10/gtk/gtktextview.c
@@ -4117,7 +4117,11 @@ static gint
 gtk_text_view_focus_out_event (GtkWidget *widget, GdkEventFocus *event)
 {
   GtkTextView *text_view = GTK_TEXT_VIEW (widget);
-
+  GtkTextView *button_release_event = gdk_event_new (GDK_BUTTON_RELEASE);
+  
+  gtk_text_view_end_selection_drag (text_view, button_release_event);
+  gdk_event_free (button_release_event);
+  
   gtk_widget_queue_draw (widget);
 
   DV(g_print (G_STRLOC": focus_out_event\n"));
