SDL_HINT_VID..._MODE_ON_MOVE(3)
π SDL_HINT_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE π
okay bestie, welcome to the SDL3 FUNCTIONS manual, page SDL_HINT_VID..._MODE_ON_MOVE(3) β¨ β yes the title got squished by the terminal, it's giving "my name is too long for the header" energy, but we move.
π NAME π
SDL_HINT_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE β a variable that controls whether SDL will attempt to automatically set the destination display to a mode most closely matching that of the previous display if an exclusive fullscreen window is moved onto it. π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE "SDL_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE"
like, that's the whole thing. no extra params, no secret args, just a #define and a header. slay. π
πΈ DESCRIPTION πΈ
so the variable can be set to the following values, and ngl both of them are valid life choices:
"0"β SDL will not attempt to automatically set a matching mode on the destination display. If an exclusive fullscreen window is moved to a new display, the window will become fullscreen desktop. (lowkey the "just let it be" option π«Ά)"1"β SDL will attempt to automatically set a mode on the destination display that most closely matches the mode of the display that the exclusive fullscreen window was previously on. (default) π
bestie the(default)is on"1", not"0". don't get it twisted. π
This hint can be set anytime. β° no timing gatekeeping, no "only before init" nonsense. iconic behaviour fr fr.
π AVAILABILITY π
This hint is available since SDL 3.4.0. π so if you're on something older, it's not ghosting you, it literally does not exist yet. π
and that's the whole page, bestie!! go forth and move your exclusive fullscreen windows between displays with main character energy πβ¨π
sourced from the Simple Directmedia Layer crew, SDL 3.4.18, dated right there on the SDL_HINT_VID..._MODE_ON_MOVE(3) footer β ty for coming to my ted talk, ily, bye ππ¦π
π¦ 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