diff src/video/x11/SDL_x11events.c @ 5056:8b7988f42fcb

Added the ability to get the UIKit window through the SDL API. You can also do this through the native API: UIWindow *window = [[UIApplication sharedApplication] keyWindow]; Also needed to name the union for events and window info.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 16:05:59 -0800
parents a5b86644c208
children 25d4feb7c127
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Thu Jan 20 11:51:23 2011 -0500
+++ b/src/video/x11/SDL_x11events.c	Thu Jan 20 16:05:59 2011 -0800
@@ -91,7 +91,7 @@
 
         SDL_VERSION(&wmmsg.version);
         wmmsg.subsystem = SDL_SYSWM_X11;
-        wmmsg.x11.event = xevent;
+        wmmsg.msg.x11.event = xevent;
         SDL_SendSysWMEvent(&wmmsg);
     }