mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-19 22:10:52 +00:00
Fixed bug #7515 - Window still grabbed after destroying
This commit is contained in:
@@ -3454,6 +3454,10 @@ void SDL_DestroyWindow(SDL_Window *window)
|
||||
_this->DestroyWindow(_this, window);
|
||||
}
|
||||
|
||||
if (_this->grabbed_window == window) {
|
||||
_this->grabbed_window = NULL; /* ungrabbing input. */
|
||||
}
|
||||
|
||||
/* Now invalidate magic */
|
||||
window->magic = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user