I’m not sure what I’m doing wrong in my code:
Ubuntu 18.04
SDL 2.0.8
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
...
SDL_SysWMinfo info;
SDL_Window *window = SDL_CreateWindow(
"hello_sdl2 One",
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
SCREEN_WIDTH, SCREEN_HEIGHT,
SDL_WINDOW_SHOWN
);
if(SDL_GetWindowWMInfo(window, &info))
{
... // never gets here
}