Backed out changeset 3f487d7d2d1d
This breaks applications.
This commit is contained in:
parent
f3280d289a
commit
f43141b289
2 changed files with 7 additions and 5 deletions
|
@ -197,6 +197,13 @@ SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1,
|
||||||
posted = (SDL_PushEvent(&event) > 0);
|
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);
|
return (posted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2210,11 +2210,6 @@ SDL_DestroyWindow(SDL_Window * window)
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_free(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
|
SDL_bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue