src/events/SDL_events.c
changeset 6670 d4883f657288
parent 6668 59c7c2db7638
child 6690 9548c8a58103
equal deleted inserted replaced
6669:c08febc180b9 6670:d4883f657288
   123        FIXME: Does this introduce any other bugs with events at startup?
   123        FIXME: Does this introduce any other bugs with events at startup?
   124      */
   124      */
   125 
   125 
   126     /* No filter to start with, process most event types */
   126     /* No filter to start with, process most event types */
   127     SDL_EventOK = NULL;
   127     SDL_EventOK = NULL;
       
   128     SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
       
   129     SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
   128     SDL_EventState(SDL_SYSWMEVENT, SDL_DISABLE);
   130     SDL_EventState(SDL_SYSWMEVENT, SDL_DISABLE);
   129 
       
   130     /* If text input shows UI onscreen we want to start with it disabled */
       
   131     if (SDL_HasScreenKeyboardSupport()) {
       
   132         SDL_EventState(SDL_TEXTINPUT, SDL_DISABLE);
       
   133         SDL_EventState(SDL_TEXTEDITING, SDL_DISABLE);
       
   134     }
       
   135 
   131 
   136     /* Create the lock and set ourselves active */
   132     /* Create the lock and set ourselves active */
   137 #if !SDL_THREADS_DISABLED
   133 #if !SDL_THREADS_DISABLED
   138     if (!SDL_EventQ.lock) {
   134     if (!SDL_EventQ.lock) {
   139         SDL_EventQ.lock = SDL_CreateMutex();
   135         SDL_EventQ.lock = SDL_CreateMutex();