Backed out changeset 3f487d7d2d1d

This breaks applications.
This commit is contained in:
Ryan C. Gordon 2013-08-08 13:22:21 -07:00
parent f3280d289a
commit f43141b289
2 changed files with 7 additions and 5 deletions

View file

@ -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);
}

View file

@ -2210,11 +2210,6 @@ SDL_DestroyWindow(SDL_Window * window)
}
SDL_free(window);
if (_this->windows == NULL) {
/* This is the last window in the list so send the SDL_QUIT event */
SDL_SendQuit();
}
}
SDL_bool