I tried code that opens a simple window in C:
main.c:
#include <SDL2/SDL.h>
#undef main
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_timer.h>
int main(int argc, char* argv[])
{
// returns zero on success else non-zero
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
printf("error initializing SDL: %s\n", SDL_GetError());
}
SDL_Window* win = SDL_CreateWindow("GAME",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
1280, 720, 0);
while (1)
;
return 0;
}
But as the title suggests, the window goes unresponsive when trying to close the window. Unlike a lot of the other posts, this doesn't involve SDL_Delay(), but still has the same effect.