Commit e6cbea31 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(XTread_socket): For selection_clear_event and

selection_request_event, initialize the frame_or_window field.
parent d601ce45
...@@ -3297,7 +3297,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) ...@@ -3297,7 +3297,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
#ifdef FIOSNBIO #ifdef FIOSNBIO
/* If available, Xlib uses FIOSNBIO to make the socket /* If available, Xlib uses FIOSNBIO to make the socket
non-blocking, and then looks for EWOULDBLOCK. If O_NDELAY is set, 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. */ a read returns 0, which Xlib interprets as equivalent to EPIPE. */
fcntl (dpyinfo->connection, F_SETFL, 0); fcntl (dpyinfo->connection, F_SETFL, 0);
#endif /* ! defined (FIOSNBIO) */ #endif /* ! defined (FIOSNBIO) */
...@@ -3461,6 +3461,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) ...@@ -3461,6 +3461,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
SELECTION_EVENT_DISPLAY (bufp) = eventp->display; SELECTION_EVENT_DISPLAY (bufp) = eventp->display;
SELECTION_EVENT_SELECTION (bufp) = eventp->selection; SELECTION_EVENT_SELECTION (bufp) = eventp->selection;
SELECTION_EVENT_TIME (bufp) = eventp->time; SELECTION_EVENT_TIME (bufp) = eventp->time;
bufp->frame_or_window = Qnil;
bufp++; bufp++;
count += 1; count += 1;
...@@ -3490,6 +3491,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected) ...@@ -3490,6 +3491,7 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
SELECTION_EVENT_TARGET (bufp) = eventp->target; SELECTION_EVENT_TARGET (bufp) = eventp->target;
SELECTION_EVENT_PROPERTY (bufp) = eventp->property; SELECTION_EVENT_PROPERTY (bufp) = eventp->property;
SELECTION_EVENT_TIME (bufp) = eventp->time; SELECTION_EVENT_TIME (bufp) = eventp->time;
bufp->frame_or_window = Qnil;
bufp++; bufp++;
count += 1; count += 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment