mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-23 21:55:12 +00:00
Fixed bug #7515 - Window still grabbed after destroying
This commit is contained in:
parent
8bfbda1eab
commit
4fa21ee5ed
|
@ -3268,6 +3268,10 @@ void SDL_DestroyWindow(SDL_Window *window)
|
||||||
display->fullscreen_window = NULL;
|
display->fullscreen_window = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_this->grabbed_window == window) {
|
||||||
|
_this->grabbed_window = NULL; /* ungrabbing input. */
|
||||||
|
}
|
||||||
|
|
||||||
/* Now invalidate magic */
|
/* Now invalidate magic */
|
||||||
window->magic = NULL;
|
window->magic = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue