diff -r d7abc11bb69a include/SDL_syswm.h --- a/include/SDL_syswm.h Sat Jan 09 00:11:20 2021 +0300 +++ b/include/SDL_syswm.h Sat Jan 09 01:39:18 2021 +0300 @@ -274,9 +274,10 @@ #if defined(SDL_VIDEO_DRIVER_WAYLAND) struct { - struct wl_display *display; /**< Wayland display */ - struct wl_surface *surface; /**< Wayland surface */ + struct wl_display *display; /**< Wayland display */ + struct wl_surface *surface; /**< Wayland surface */ struct wl_shell_surface *shell_surface; /**< Wayland shell_surface (window manager handle) */ + struct wl_egl_window *egl_window; /**< Wayland EGL window (native window) */ } wl; #endif #if defined(SDL_VIDEO_DRIVER_MIR) /* no longer available, left for API/ABI compatibility. Remove in 2.1! */ diff -r d7abc11bb69a src/video/wayland/SDL_waylandwindow.c --- a/src/video/wayland/SDL_waylandwindow.c Sat Jan 09 00:11:20 2021 +0300 +++ b/src/video/wayland/SDL_waylandwindow.c Sat Jan 09 01:39:18 2021 +0300 @@ -460,6 +460,7 @@ info->info.wl.display = data->waylandData->display; info->info.wl.surface = data->surface; info->info.wl.shell_surface = data->shell_surface.wl; + info->info.wl.egl_window = data->egl_window; info->subsystem = SDL_SYSWM_WAYLAND; return SDL_TRUE;