The caller must initialize the info structure's version by using SDL_VERSION(&info.version), and then this function will fill in the rest of the structure with information about the given window.
Also the return value of SDL_GetWindowWMInfo() to check against should beSDL_TRUE which is defined as 1, but the code tests against 0. The following changes are necessary:
In the SDL wiki SDL_GetWindowWMInfo it is specified that:
Also the return value of
SDL_GetWindowWMInfo()
to check against should beSDL_TRUE
which is defined as 1, but the code tests against 0. The following changes are necessary: