src/events/SDL_events.c
changeset 7077 f8e3dcefed59
parent 7037 3fedf1f25b94
child 7082 e9d6004d2978
     1.1 --- a/src/events/SDL_events.c	Tue Apr 16 01:38:08 2013 -0400
     1.2 +++ b/src/events/SDL_events.c	Fri Apr 19 11:58:38 2013 -0400
     1.3 @@ -123,12 +123,6 @@
     1.4         FIXME: Does this introduce any other bugs with events at startup?
     1.5       */
     1.6  
     1.7 -    /* No filter to start with, process most event types */
     1.8 -    SDL_EventOK = NULL;
     1.9 -    SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
    1.10 -    SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
    1.11 -    SDL_EventState(SDL_SYSWMEVENT, SDL_DISABLE);
    1.12 -
    1.13      /* Create the lock and set ourselves active */
    1.14  #if !SDL_THREADS_DISABLED
    1.15      if (!SDL_EventQ.lock) {
    1.16 @@ -138,6 +132,13 @@
    1.17          return (-1);
    1.18      }
    1.19  #endif /* !SDL_THREADS_DISABLED */
    1.20 +
    1.21 +    /* No filter to start with, process most event types */
    1.22 +    SDL_EventOK = NULL;
    1.23 +    SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
    1.24 +    SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
    1.25 +    SDL_EventState(SDL_SYSWMEVENT, SDL_DISABLE);
    1.26 +
    1.27      SDL_EventQ.active = 1;
    1.28  
    1.29      return (0);