Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e6cbea31
Commit
e6cbea31
authored
Jan 12, 1996
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(XTread_socket): For selection_clear_event and
selection_request_event, initialize the frame_or_window field.
parent
d601ce45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/xterm.c
src/xterm.c
+3
-1
No files found.
src/xterm.c
View file @
e6cbea31
...
...
@@ -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 signal
l
ing 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment