tray: renamed SDL_HasNoActiveTrays() to SDL_HasActiveTrays()

This commit is contained in:
Sam Lantinga
2025-01-19 16:29:58 -08:00
parent a974888aad
commit d4cda51057
4 changed files with 5 additions and 5 deletions

View File

@@ -247,7 +247,7 @@ bool SDL_SendWindowEvent(SDL_Window *window, SDL_EventType windowevent, int data
break;
}
if (windowevent == SDL_EVENT_WINDOW_CLOSE_REQUESTED && !window->parent && SDL_HasNoActiveTrays()) {
if (windowevent == SDL_EVENT_WINDOW_CLOSE_REQUESTED && !window->parent && !SDL_HasActiveTrays()) {
int toplevel_count = 0;
SDL_Window *n;
for (n = SDL_GetVideoDevice()->windows; n; n = n->next) {