Fix detection of Win32 software monitor events

Fixes #53.
This commit is contained in:
Camilla Berglund
2016-02-23 11:27:33 +01:00
parent d956dbbd2c
commit 0ea193c4e2
2 changed files with 5 additions and 8 deletions
+3 -8
View File
@@ -264,15 +264,10 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
break;
}
case WM_DEVICECHANGE:
case WM_DISPLAYCHANGE:
{
if (wParam == DBT_DEVNODES_CHANGED)
{
_glfwInputMonitorChange();
return TRUE;
}
break;
_glfwInputMonitorChange();
return 0;
}
}