mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-07 14:18:32 +00:00
* xterm.c (handle_one_xevent): Avoid type-punned derefencing of X events.
This commit is contained in:
parent
0080dc6bd9
commit
5324d904a3
@ -1,3 +1,8 @@
|
||||
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).
|
||||
|
@ -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 = (XSelectionClearEvent *) &event;
|
||||
XSelectionClearEvent *eventp = &(event.xselectionclear);
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user