Function SDL_GetGrabbedWindow

pub unsafe extern "C" fn SDL_GetGrabbedWindow() -> *mut SDL_Window
Available on crate feature dep_sdl3 only.
Expand description

Get the window that currently has an input grab enabled.

§Return value

Returns the window if input is grabbed or NULL otherwise.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also