wayland: Expose xdg_toplevel to SysWM

This commit is contained in:
Cacodemon345
2021-09-25 12:55:41 +06:00
committed by Ethan Lee
parent 7a1690eb63
commit b592e78f93
4 changed files with 10 additions and 0 deletions

View File

@@ -292,6 +292,7 @@ struct SDL_SysWMinfo
void *shell_surface; /**< DEPRECATED Wayland shell_surface (window manager handle) */
struct wl_egl_window *egl_window; /**< Wayland EGL window (native window) */
struct xdg_surface *xdg_surface; /**< Wayland xdg surface (window manager handle) */
struct xdg_toplevel *xdg_toplevel; /**< Wayland xdg toplevel role */
} wl;
#endif
#if defined(SDL_VIDEO_DRIVER_MIR) /* no longer available, left for API/ABI compatibility. Remove in 2.1! */