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
disable this behavior.
Also by default, windowed mode windows are focused when shown
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
$windowThe window to give input focus.