glfwRequestWindowAttention

Requests user attention to the specified window.

This function requests user attention to the specified window. On platforms where this is not supported, attention is requested to the application as a whole.

Once the user has given attention, usually by focusing the window or application, the system will end the request automatically.

extern (C) @nogc nothrow __gshared
void
glfwRequestWindowAttention

Parameters

window GLFWwindow*

The window to request attention to.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

@remark @macos Attention is requested to the application as a whole, not the specific window.

Thread Safety

This function must only be called from the main thread.

@sa @ref window_attention

Meta

Since

Added in version 3.3.

Ingroup: window