1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-07 22:57:25 -04:00

Fixed clip rect being set for unfocused windows.

This commit is contained in:
Camilla Berglund 2013-10-07 15:30:57 +02:00
parent 161065ac19
commit 9c5d9f8614
2 changed files with 11 additions and 2 deletions

View File

@ -208,6 +208,8 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/).
## Changelog
- [Win32] Bugfix: The disabled cursor mode clip rectangle was updated for
unfocused windows
- [Cocoa] Bugfix: The `GLFW_KEY_GRAVE_ACCENT` and `GLFW_KEY_WORLD_1` keys had
been flipped
- [Cocoa] Bugfix: The `GLFW_KEY_F13` key was reported as
@ -307,6 +309,7 @@ skills.
- TTK-Bandit
- Sergey Tikhomirov
- Samuli Tuomola
- urraka
- Jari Vetoniemi
- Simon Voordouw
- Torsten Walluhn

View File

@ -654,8 +654,11 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
case WM_SIZE:
{
if (window->cursorMode == GLFW_CURSOR_DISABLED)
if (window->cursorMode == GLFW_CURSOR_DISABLED &&
_glfw.focusedWindow == window)
{
updateClipRect(window);
}
_glfwInputFramebufferSize(window, LOWORD(lParam), HIWORD(lParam));
_glfwInputWindowSize(window, LOWORD(lParam), HIWORD(lParam));
@ -664,8 +667,11 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
case WM_MOVE:
{
if (window->cursorMode == GLFW_CURSOR_DISABLED)
if (window->cursorMode == GLFW_CURSOR_DISABLED &&
_glfw.focusedWindow == window)
{
updateClipRect(window);
}
_glfwInputWindowPos(window, LOWORD(lParam), HIWORD(lParam));
return 0;