--- gtk+-1.2.10/gtk/gtkentry.c.selection	Mon Apr  2 06:14:54 2001
+++ gtk+-1.2.10/gtk/gtkentry.c	Sun Dec  9 16:22:43 2001
@@ -730,6 +730,10 @@
 
   entry = GTK_ENTRY (widget);
 
+  /* Avoid dangling selection */
+  gtk_editable_claim_selection (GTK_EDITABLE (widget), FALSE,
+				GDK_CURRENT_TIME);
+
 #ifdef USE_XIM
   if (GTK_EDITABLE (widget)->ic)
     {
--- gtk+-1.2.10/gtk/gtktext.c.selection	Thu Mar 15 23:15:12 2001
+++ gtk+-1.2.10/gtk/gtktext.c	Sun Dec  9 16:21:51 2001
@@ -1467,6 +1467,10 @@
   
   text = GTK_TEXT (widget);
 
+  /* Avoid dangling selection */
+  gtk_editable_claim_selection (GTK_EDITABLE (widget), FALSE,
+				GDK_CURRENT_TIME);
+  
 #ifdef USE_XIM
   if (GTK_EDITABLE (widget)->ic)
     {
