src/video/x11/SDL_x11events.c
changeset 7214 5b31583ecf9e
parent 7199 6d4cad3fb837
child 7396 a36ab6149a10
equal deleted inserted replaced
7213:53df899db00b 7214:5b31583ecf9e
   185 }
   185 }
   186 
   186 
   187 #if SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
   187 #if SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS
   188 static void X11_HandleGenericEvent(SDL_VideoData *videodata,XEvent event)
   188 static void X11_HandleGenericEvent(SDL_VideoData *videodata,XEvent event)
   189 {
   189 {
   190     XGenericEventCookie *cookie = &event.xcookie;
   190     if (XGetEventData(videodata->display, &event)) {
   191     XGetEventData(videodata->display, cookie);
   191         XGenericEventCookie *cookie = &event.xcookie;
   192     X11_HandleXinput2Event(videodata,cookie);
   192         X11_HandleXinput2Event(videodata, cookie);
   193     XFreeEventData(videodata->display,cookie);
   193         XFreeEventData(videodata->display, cookie);
       
   194     }
   194 }
   195 }
   195 #endif /* SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS */
   196 #endif /* SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS */
   196 
   197 
   197 
   198 
   198 static void
   199 static void