Răsfoiți Sursa

Hit test no longer executes when destroying wayland window

Signed-off-by: quasar32 <fontejam32@gmail.com>
quasar32 3 săptămâni în urmă
părinte
comite
be51a15ba2
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      src/video/wayland/SDL_waylandwindow.c

+ 2 - 0
src/video/wayland/SDL_waylandwindow.c

@@ -3735,6 +3735,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);
         }