native display handle

Hi there…
I’m writing a plugin for an application that uses SDL.
Is there any API available to get the native display handle (in my case wayland) without having a pointer to the actual SDL_Window. Something similar to how EglGetCurrentDisplay() allows you to access the current display?

thanks in advance,
tobi

Probably not. There’s just SDL_GetWindowWMInfo().

SDL 3 has SDL_GetWindows that gives you a list of all the windows.

I don’t know what a “native handle” is when dealing with Wayland but SDL_GetWindowProperties let you extract a number of Wayland-specific properties so maybe it’s one of those?

1 Like