I am trying to create a window in SDL2 using the SDL_CreateWindow() function. The window created by the SDL_CreateWindow() function in my code has no window decorations. I am using GNOME Mutter.
Running the output of the code below from my terminal creates a blank window with no title bar
#include <stdlib.h>
#include <SDL2/SDL.h>
int main(int argc, char* argv[])
{
SDL_Init(SDL_INIT_VIDEO);
SDL_Window *window = NULL;
window = SDL_CreateWindow(
"Window",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
640,
480,
0
);
SDL_Delay(2000);
SDL_Quit();
return EXIT_SUCCESS;
}
I want the window created by SDL_CreateWindow() to have a title bar and an exit button