Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5324d904
Commit
5324d904
authored
Apr 08, 2011
by
Chong Yidong
Browse files
* xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events.
parent
0080dc6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/xterm.c
src/xterm.c
+3
-4
No files found.
src/ChangeLog
View file @
5324d904
2011-04-08 Chong Yidong <cyd@stupidchicken.com>
* xterm.c (handle_one_xevent): Avoid type-punned derefencing of X
events.
2011-04-08 Svante Signell <svante.signell@telia.com> (tiny change)
* term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
...
...
src/xterm.c
View file @
5324d904
...
...
@@ -4074,7 +4074,7 @@ x_window_to_scroll_bar (display, window_id)
return XSCROLL_BAR (bar);
}
return
0
;
return
NULL
;
}
...
...
@@ -6086,7 +6086,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
goto OTHER;
#endif /* USE_X_TOOLKIT */
{
XSelectionClearEvent *eventp =
(XS
election
C
lear
Event *) &event
;
XSelectionClearEvent *eventp =
&(event.xs
election
c
lear
)
;
inev.ie.kind = SELECTION_CLEAR_EVENT;
SELECTION_EVENT_DISPLAY (&inev.sie) = eventp->display;
...
...
@@ -6103,8 +6103,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
goto OTHER;
#endif /* USE_X_TOOLKIT */
{
XSelectionRequestEvent *eventp
= (XSelectionRequestEvent *) &event;
XSelectionRequestEvent *eventp = &(event.xselectionrequest);
inev.ie.kind = SELECTION_REQUEST_EVENT;
SELECTION_EVENT_DISPLAY (&inev.sie) = eventp->display;
...
...
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