RCS file: /cvs/gnome/gtk+/gtk/gtktextview.c,v
retrieving revision 1.187
diff -u -r1.187 gtktextview.c
--- gtk/gtktextview.c	2002/03/05 20:31:54	1.187
+++ gtk/gtktextview.c	2002/03/14 08:39:59
@@ -6380,6 +6380,13 @@
 {
   PopupInfo *info = g_new (PopupInfo, 1);
 
+  /* End the selection drag, otherwise we'd might miss the
+   * left button release to stop the drag since the menu
+   * catches the left button releases. Also the correct
+   * thing to do semantically.
+   */
+  gtk_text_view_end_selection_drag (text_view, NULL);
+
   /* In order to know what entries we should make sensitive, we
    * ask for the current targets of the clipboard, and when
    * we get them, then we actually pop up the menu.
