mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Added window focus callback (Cocoa implementation missing).
This commit is contained in:
@@ -1299,7 +1299,7 @@ static void processSingleEvent(void)
|
||||
return;
|
||||
}
|
||||
|
||||
_glfwLibrary.activeWindow = window;
|
||||
_glfwInputWindowFocus(window, GL_TRUE);
|
||||
|
||||
if (_glfwLibrary.cursorLockWindow == window)
|
||||
_glfwPlatformHideMouseCursor(window);
|
||||
@@ -1317,10 +1317,7 @@ static void processSingleEvent(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (_glfwLibrary.activeWindow == window)
|
||||
_glfwLibrary.activeWindow = NULL;
|
||||
|
||||
_glfwInputDeactivation(window);
|
||||
_glfwInputWindowFocus(window, GL_FALSE);
|
||||
|
||||
if (_glfwLibrary.cursorLockWindow == window)
|
||||
_glfwPlatformShowMouseCursor(window);
|
||||
|
||||
Reference in New Issue
Block a user