Fixed bug #7515 - Window still grabbed after destroying

This commit is contained in:
Sylvain 2023-03-28 09:28:17 +02:00
parent 8bfbda1eab
commit 4fa21ee5ed
No known key found for this signature in database
GPG key ID: 5F87E02E5BC0939E

View file

@ -3268,6 +3268,10 @@ void SDL_DestroyWindow(SDL_Window *window)
display->fullscreen_window = NULL;
}
if (_this->grabbed_window == window) {
_this->grabbed_window = NULL; /* ungrabbing input. */
}
/* Now invalidate magic */
window->magic = NULL;