+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).
return XSCROLL_BAR (bar);
}
- return 0;
+ return NULL;
}
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;
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;