src/events/SDL_windowevents.c
changeset 4429 faa9fc8e7f67
parent 3697 f7b03b6838cb
child 5042 8c39b82dc7b0
equal deleted inserted replaced
4428:68dfd6df47da 4429:faa9fc8e7f67
   142         break;
   142         break;
   143     }
   143     }
   144 
   144 
   145     /* Post the event, if desired */
   145     /* Post the event, if desired */
   146     posted = 0;
   146     posted = 0;
   147     if (SDL_ProcessEvents[SDL_WINDOWEVENT] == SDL_ENABLE) {
   147     if (SDL_GetEventState(SDL_WINDOWEVENT) == SDL_ENABLE) {
   148         SDL_Event event;
   148         SDL_Event event;
   149         event.type = SDL_WINDOWEVENT;
   149         event.type = SDL_WINDOWEVENT;
   150         event.window.event = windowevent;
   150         event.window.event = windowevent;
   151         event.window.data1 = data1;
   151         event.window.data1 = data1;
   152         event.window.data2 = data2;
   152         event.window.data2 = data2;