changeset 14165:65e51231924e

(XTread_socket): For selection_clear_event and selection_request_event, initialize the frame_or_window field.
author Richard M. Stallman <rms@gnu.org>
date Fri, 12 Jan 1996 21:51:46 +0000
parents 519566ee8a29
children 672017f09b0c
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Jan 12 21:49:26 1996 +0000
+++ b/src/xterm.c	Fri Jan 12 21:51:46 1996 +0000
@@ -3297,7 +3297,7 @@
 #ifdef FIOSNBIO
       /* If available, Xlib uses FIOSNBIO to make the socket
 	 non-blocking, and then looks for EWOULDBLOCK.  If O_NDELAY is set,
-	 FIOSNBIO is ignored, and instead of signalling EWOULDBLOCK,
+	 FIOSNBIO is ignored, and instead of signaling EWOULDBLOCK,
 	 a read returns 0, which Xlib interprets as equivalent to EPIPE. */
       fcntl (dpyinfo->connection, F_SETFL, 0);
 #endif /* ! defined (FIOSNBIO) */
@@ -3461,6 +3461,7 @@
 		SELECTION_EVENT_DISPLAY (bufp) = eventp->display;
 		SELECTION_EVENT_SELECTION (bufp) = eventp->selection;
 		SELECTION_EVENT_TIME (bufp) = eventp->time;
+		bufp->frame_or_window = Qnil;
 		bufp++;
 
 		count += 1;
@@ -3490,6 +3491,7 @@
 		  SELECTION_EVENT_TARGET (bufp) = eventp->target;
 		  SELECTION_EVENT_PROPERTY (bufp) = eventp->property;
 		  SELECTION_EVENT_TIME (bufp) = eventp->time;
+		  bufp->frame_or_window = Qnil;
 		  bufp++;
 
 		  count += 1;