Browse Source

Fixed bug 4513 - Wayland, fix crash when remove event is sent (from Sebastian Krzyszkowiak)

Sylvain Becker 6 years ago
parent
commit
cddb285cdb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/video/wayland/SDL_waylandvideo.c

+ 4 - 1
src/video/wayland/SDL_waylandvideo.c

@@ -392,9 +392,12 @@ display_handle_global(void *data, struct wl_registry *registry, uint32_t id,
     }
 }
 
+static void
+display_remove_global(void *data, struct wl_registry *registry, uint32_t id) {}
+
 static const struct wl_registry_listener registry_listener = {
     display_handle_global,
-    NULL, /* global_remove */
+    display_remove_global
 };
 
 int