SDL_HINT_WIN...TE_WHEN_SHOWN(3)
π SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN π
okay bestie, welcome to the SDL3 FUNCTIONS manual, and lemme tell you about this lil variable that controls whether your window gets activated when SDL_ShowWindow gets called. it's giving "do I get the spotlight or nah" energy and honestly? iconic. π
β¨ NAME β¨
SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN β a variable controlling whether the window is activated when the SDL_ShowWindow function is called.
like, that's it. that's the whole job. but it's a very important job. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN "SDL_WINDOW_ACTIVATE_WHEN_SHOWN"
so you just #include the header, and the macro is already sitting there waiting for you like a good little bestie. no cap. π«Ά
π DESCRIPTION π
okay so here's the tea β β this variable can be set to the following values:
"0"β the window is NOT activated when theSDL_ShowWindowfunction is called. it shows up but it does not steal focus, it's lowkey minding its own business. π"1"β the window IS activated when theSDL_ShowWindowfunction is called. main character energy fr fr. π (this is the default)
and the best part? this hint can be set anytime. like, no weird timing rules, no "you had to do it before init" nonsense. set it whenever, bestie. β¨
π¦ AVAILABILITY π¦
this hint is available since SDL 3.2.0. so if you're on anything older, sorry babe, you're not invited to this party. π
reminder: this is a hint, so it's the vibe you're requesting, not a blood oath. keep your values exactly as written β"0"and"1"β and don't go inventing new ones. π
that's the whole page, bestie! go forth and activate (or don't activate) those windows with confidence. πβπ
signing off with love from the Simple Directmedia Layer crew β this one's from SDL 3.4.18 β mwah, catch you in the next manpage π ππ§
π¦ 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