SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT(3)
π SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT(3) β SDL3 FUNCTIONS π
okay bestie, welcome to the SDL3 hint page, this one lives in the SDL3 functions section of the manual and it's genuinely so niche but so real.
β¨ NAME β¨
SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT β a variable controlling whether SDL should call XSelectInput() to enable input events on X11 windows wrapped by SDL windows.
like. it's the little switch that decides whether SDL pokes X11 about input or just trusts that somebody else already did. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT "SDL_VIDEO_X11_EXTERNAL_WINDOW_INPUT"
yes the macro is just the string, that's the whole vibe, no cap. β¨
π¦ DESCRIPTION π¦
so the variable can be set to the following values, and there are literally two of them, pick one:
"0"β don't callXSelectInput(), assuming the native window code has done it already. i.e. somebody else handled it, we're just gonna trust them π"1"β callXSelectInput()to enable input events. (default)
π heads up bestie: this hint should be set before creating a window. setting it after is giving "too late, the window's already out here living its life" energy.
π AVAILABILITY π
this hint is available since SDL 3.2.10. so if you're on something older, it's simply not giving, sorry babe. π
π«Ά SEE ALSO π«Ά
(nothing extra here, the original page keeps it minimal, and honestly, respect.)
Simple Directmedia Layer made this, it's SDL 3.4.18, and the page is SDL_HINT_VIDE..._WINDOW_INPUT(3) β that's the source, the version, and the date all wrapped up in one cute little sign-off. periodt. π
β¨ππ¦πΈπ₯
π¦ 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