Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 11, 2013
1 parent b959d6e commit 137a338
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -187,8 +187,9 @@ static char* X11_URIToLocal(char* uri) {
#if SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
static void X11_HandleGenericEvent(SDL_VideoData *videodata,XEvent event)
{
if (XGetEventData(videodata->display, &event)) {
XGenericEventCookie *cookie = &event.xcookie;
/* event is a union, so cookie == &event, but this is type safe. */
XGenericEventCookie *cookie = &event.xcookie;
if (XGetEventData(videodata->display, cookie)) {
X11_HandleXinput2Event(videodata, cookie);
XFreeEventData(videodata->display, cookie);
}
Expand Down

0 comments on commit 137a338

Please sign in to comment.