# HG changeset patch # User Bob Pendleton # Date 1182297664 0 # Node ID 55c7932d1fdb0666250bd4a4686cc0b5b641cd8c # Parent 3ee59c43d784c8b8c12c525f73a4bdad91b00bd5 Added a WindowID to the user event and cleaned up a little bit of formating diff -r 3ee59c43d784 -r 55c7932d1fdb include/SDL_events.h --- a/include/SDL_events.h Tue Jun 19 05:53:56 2007 +0000 +++ b/include/SDL_events.h Wed Jun 20 00:01:04 2007 +0000 @@ -278,10 +278,11 @@ */ typedef struct SDL_UserEvent { - Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ - int code; /**< User defined event code */ - void *data1; /**< User defined data pointer */ - void *data2; /**< User defined data pointer */ + Uint8 type; /**< SDL_USEREVENT through SDL_NUMEVENTS-1 */ + int code; /**< User defined event code */ + void *data1; /**< User defined data pointer */ + void *data2; /**< User defined data pointer */ + SDL_WindowID windowID; /**< The associated window if any*/ } SDL_UserEvent; /** diff -r 3ee59c43d784 -r 55c7932d1fdb include/SDL_video.h --- a/include/SDL_video.h Tue Jun 19 05:53:56 2007 +0000 +++ b/include/SDL_video.h Wed Jun 20 00:01:04 2007 +0000 @@ -160,7 +160,7 @@ SDL_WINDOWEVENT_LEAVE, /**< The window has lost mouse focus */ SDL_WINDOWEVENT_FOCUS_GAINED, /**< The window has gained keyboard focus */ SDL_WINDOWEVENT_FOCUS_LOST, /**< The window has lost keyboard focus */ - SDL_WINDOWEVENT_CLOSE, /**< The window manager requests that the window be closed */ + SDL_WINDOWEVENT_CLOSE, /**< The window manager requests that the window be closed */ } SDL_WindowEventID; /**