changeset 38387:293a8b219972

(XTread_socket) <PropertyNotify>: Put the code ignoring events on foreign windows in #if 0. Always dispatch the event after checking it with x_handle_property_notify.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 12 Jul 2001 14:39:21 +0000
parents 6bf3530c700d
children 9db628f75778
files src/xterm.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Jul 12 14:38:51 2001 +0000
+++ b/src/xterm.c	Thu Jul 12 14:39:21 2001 +0000
@@ -9997,7 +9997,8 @@
 			       &event);
 	      else
 		{
-		  XSelectionRequestEvent *eventp = (XSelectionRequestEvent *) &event;
+		  XSelectionRequestEvent *eventp
+		    = (XSelectionRequestEvent *) &event;
 
 		  if (numchars == 0)
 		    abort ();
@@ -10019,12 +10020,16 @@
 	      break;
 
 	    case PropertyNotify:
-#ifdef USE_X_TOOLKIT
+#if 0 /* This is plain wrong.  In the case that we are waiting for a
+	 PropertyNotify used as an ACK in incremental selection
+	 transfer, the property will be on the receiver's window.  */
+#if defined USE_X_TOOLKIT
 	      if (!x_any_window_to_frame (dpyinfo, event.xproperty.window))
 		goto OTHER;
-#endif /* not USE_X_TOOLKIT */
+#endif
+#endif
 	      x_handle_property_notify (&event.xproperty);
-	      break;
+	      goto OTHER;
 
 	    case ReparentNotify:
 	      f = x_top_window_to_frame (dpyinfo, event.xreparent.window);