SDL_HINT_WINDOW_ALLOW_TOPMOST(3)
π SDL_HINT_WINDOW_ALLOW_TOPMOST π
okay bestie, welcome to the SDL3 functions girlies manual β this one's a lil hint, and it's giving "please stop putting your window on top of everything" energy. let's get into it π«Ά
β¨ NAME β¨
SDL_HINT_WINDOW_ALLOW_TOPMOST β if you set it to "0" then SDL will never set the topmost flag on an SDL Window, even if the application literally asks for it. like, respectfully, no. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_WINDOW_ALLOW_TOPMOST "SDL_WINDOW_ALLOW_TOPMOST"
π¦ DESCRIPTION π¦
so here's the tea β β this is a debugging aid for developers, and it is not expected to be used by end users. it's a dev-tools-only kind of vibe, iykyk.
The variable can be set to the following values:
"0"β don't allow topmost π"1"β allow topmost (default) π
This hint can be set anytime. no timing drama, no "wait until after init", just set it whenever you want. iconic behavior fr fr β¨
π AVAILABILITY π
This hint is available since SDL 3.2.0. so if you're on something olderβ¦ bestie, it's not there π
that's the whole page, no cap. every flag, every value, every default, all accounted for. main character documentation energy only π
signing off with love from the Simple Directmedia Layer crew β this is the SDL 3.4.18 era, so you know it's fresh π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms