From 26c60fd5fc844d48602097067d8b40e292ddd473 Mon Sep 17 00:00:00 2001 From: Doug Binks Date: Wed, 23 May 2018 14:44:49 +0100 Subject: [PATCH] Updated readme and news for GLFW_FOCUS_ON_SHOW --- README.md | 2 ++ docs/news.dox | 6 ++++++ include/GLFW/glfw3.h | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0573dcd93..c7cb5c4cd 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,8 @@ information on what to include when reporting a bug. ## Changelog +- Added `GLFW_FOCUS_ON_SHOW` window hint and attribute to control input focus + on calling show window (#1189) - Added `glfwGetError` function for querying the last error code and its description (#970) - Added `glfwUpdateGamepadMappings` function for importing gamepad mappings in diff --git a/docs/news.dox b/docs/news.dox index 13f3dd64a..2d043adeb 100644 --- a/docs/news.dox +++ b/docs/news.dox @@ -4,6 +4,12 @@ @section news_33 Release notes for 3.3 +@subsection news_33_focusonshow GLFW_FOCUS_ON_SHOW window hint and attribute + +GLFW now supports the [GLFW_FOCUS_ON_SHOW](@ref GLFW_DECORATED_hint) window hint +and attribute for controlling input focus when calling @ref glfwShowWindow + +@see @ref window_hide @subsection news_33_geterror Error query diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 9b7b7c289..c140ce1ec 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -3092,8 +3092,9 @@ GLFWAPI void glfwMaximizeWindow(GLFWwindow* window); * function does nothing. * * By default, windowed mode windows are focused when shown - * Set the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) to - * change this behavior. + * Set the [GLFW_FOCUS_ON_SHOW](@ref GLFW_FOCUS_ON_SHOW_hint) window hint + * to change this behavior for all newly created windows, or change the + * behaviour for an existing window with @ref glfwSetWindowAttrib. * * @param[in] window The window to make visible. *