src/events/SDL_windowevents.c
changeset 7608 3f487d7d2d1d
parent 7191 75360622e65f
child 7609 6e1abd05047c
equal deleted inserted replaced
7607:7753a6f8cda8 7608:3f487d7d2d1d
   195         }
   195         }
   196 
   196 
   197         posted = (SDL_PushEvent(&event) > 0);
   197         posted = (SDL_PushEvent(&event) > 0);
   198     }
   198     }
   199 
   199 
   200     if (windowevent == SDL_WINDOWEVENT_CLOSE) {
       
   201         if ( !window->prev && !window->next ) {
       
   202             /* This is the last window in the list so send the SDL_QUIT event */
       
   203             SDL_SendQuit();
       
   204         }
       
   205     }
       
   206 
       
   207     return (posted);
   200     return (posted);
   208 }
   201 }
   209 
   202 
   210 /* vi: set ts=4 sw=4 expandtab: */
   203 /* vi: set ts=4 sw=4 expandtab: */