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

Backed out changeset 3f487d7d2d1d

This breaks applications.
  • Loading branch information
icculus committed Aug 8, 2013
1 parent eb8ec67 commit f79d823bcd31686b77cc97b0f5ce8527fa538371

File 1 of 2 in f79d823

@@ -197,6 +197,13 @@ 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 f79d823

Please sign in to comment.