Search code examples
cwindowsdlsdl-2

Make an sdl window not show up on the menubar


Im trying to make a widgets application in C with SDL2 and I've been wondering if there is anyway of making an SDL2 window not show up on the menu/window bar?

To hide something like this

Thanks!


Solution

  • Take a look to SDL_WindowFlags, SDL_WINDOW_SKIP_TASKBAR is what you are looking for.

    Uint32 flags = SDL_WINDOW_SKIP_TASKBAR;
    SDL_Window * window = SDL_CreateWindow(
        /* ... */
        flags
    );