Fixed bug #7515 - Window still grabbed after destroying

This commit is contained in:
Sylvain authored and Sylvain Becker committed 2023-03-28 09:42:19 +02:00
1 parent 1fe2110755
commit e494844e9a
1 file changed
+4
+4
View File
@@ -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;