glfwFocusWindow¶
Brings the specified window to front and sets input focus.
This function brings the specified window to front and sets input focus. The window should already be visible and not iconified.
By default, both windowed and full screen mode windows are focused when
initially created. Set the GLFW_FOCUSED
to
disable this behavior.
Also by default, windowed mode windows are focused when shown
with glfwShowWindow
. Set the
GLFW_FOCUS_ON_SHOW
to disable this behavior.
Do not use this function to steal focus from other applications unless you are certain that is what the user wants. Focus stealing can be extremely disruptive.
For a less disruptive way of getting the user's attention, see
attention requests
.
- arguments
-
\GLFWwindow
$window
The window to give input focus.
- returns
-
void