summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-01-12 21:51:46 +0000
committerRichard M. Stallman <rms@gnu.org>1996-01-12 21:51:46 +0000
commite3bc880ade30a95c11ff3dc05aaa159edc247165 (patch)
tree3fa509c88c4a5b7b06785778a86617bdffe77b08
parentb7d9f9be7b59ef7493d48357ba5741ccf7f6699e (diff)
downloademacs-e3bc880ade30a95c11ff3dc05aaa159edc247165.tar.gz
(XTread_socket): For selection_clear_event and
selection_request_event, initialize the frame_or_window field.
-rw-r--r--src/xterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 89376585b32..79fda75259d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3297,7 +3297,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
#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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
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 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
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;