Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Send the SDL_QUIT when last window is destroyed, not during its close…

… event.
  • Loading branch information
icculus committed Aug 8, 2013
1 parent 760d638 commit eb8ec6735aa4b69909110e2279bcdd7e13cb4fc1

File 1 of 2 in eb8ec67

@@ -197,13 +197,6 @@ SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1,
posted = (SDL_PushEvent(&event) > 0);
}

if (windowevent == SDL_WINDOWEVENT_CLOSE) {
if ( !window->prev && !window->next ) {
/* This is the last window in the list so send the SDL_QUIT event */
SDL_SendQuit();
}
}

return (posted);
}

0 comments on commit eb8ec67

Please sign in to comment.