Hit test no longer executes when destroying wayland window

Signed-off-by: quasar32 <fontejam32@gmail.com>
(cherry picked from commit be51a15ba2)
This commit is contained in:
quasar32
2026-08-22 00:01:05 -05:00
committed by Frank Praznik
parent f107c8f116
commit 32f1edb4b9

View File

@@ -3316,6 +3316,8 @@ void Wayland_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window)
* no internal structures are left pointing to the destroyed window.
*/
if (wind->show_hide_sync_required) {
/* Make sure hit test isn't executed during roundtrip */
window->hit_test = NULL;
WAYLAND_wl_display_roundtrip(data->display);
}