Set whether the window may have input focus.
Defined in <SDL3/SDL_video.h>
bool SDL_SetWindowFocusable(SDL_Window *window, bool focusable);
SDL_Window * | window | the window to set focusable state. |
bool | focusable | true to allow input focus, false to not allow input focus. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This function should only be called on the main thread.
This function is available since SDL 3.1.3.