src/events/SDL_windowevents.c
changeset 5113 686d795b1b29
parent 5042 8c39b82dc7b0
child 5147 ad50b3db78bd
equal deleted inserted replaced
5112:39772ccf7ddd 5113:686d795b1b29
   174             SDL_FilterEvents(RemovePendingMoveEvents, &event);
   174             SDL_FilterEvents(RemovePendingMoveEvents, &event);
   175         }
   175         }
   176 
   176 
   177         posted = (SDL_PushEvent(&event) > 0);
   177         posted = (SDL_PushEvent(&event) > 0);
   178     }
   178     }
       
   179 	
       
   180 	if (windowevent == SDL_WINDOWEVENT_CLOSE) {
       
   181 		if ( !window->prev && !window->next ) {
       
   182 			// This is the last window in the list so send the SDL_QUIT event
       
   183 			SDL_SendQuit();
       
   184 		}
       
   185 	}
       
   186 
   179     return (posted);
   187     return (posted);
   180 }
   188 }
   181 
   189 
   182 /* vi: set ts=4 sw=4 expandtab: */
   190 /* vi: set ts=4 sw=4 expandtab: */