mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 14:04:36 +00:00
parent
0df9cc2fc5
commit
97dbd8b63b
@ -166,6 +166,7 @@ information on what to include when reporting a bug.
|
|||||||
- [Win32] Bugfix: The 32-bit Vulkan loader library static was not searched for
|
- [Win32] Bugfix: The 32-bit Vulkan loader library static was not searched for
|
||||||
- [Win32] Bugfix: Vulkan libraries have a new path as of SDK 1.0.42.0 (#956)
|
- [Win32] Bugfix: Vulkan libraries have a new path as of SDK 1.0.42.0 (#956)
|
||||||
- [Win32] Bugfix: Monitors with no display devices were not enumerated (#960)
|
- [Win32] Bugfix: Monitors with no display devices were not enumerated (#960)
|
||||||
|
- [Win32] Bugfix: Monitor events were not emitted (#784)
|
||||||
- [X11] Replaced `_GLFW_HAS_XF86VM` compile-time option with dynamic loading
|
- [X11] Replaced `_GLFW_HAS_XF86VM` compile-time option with dynamic loading
|
||||||
- [X11] Bugfix: `glfwGetVideoMode` would segfault on Cygwin/X
|
- [X11] Bugfix: `glfwGetVideoMode` would segfault on Cygwin/X
|
||||||
- [X11] Bugfix: Dynamic X11 library loading did not use full sonames (#941)
|
- [X11] Bugfix: Dynamic X11 library loading did not use full sonames (#941)
|
||||||
|
@ -307,10 +307,10 @@ static HWND createHelperWindow(void)
|
|||||||
MSG msg;
|
MSG msg;
|
||||||
HWND window = CreateWindowExW(WS_EX_OVERLAPPEDWINDOW,
|
HWND window = CreateWindowExW(WS_EX_OVERLAPPEDWINDOW,
|
||||||
_GLFW_WNDCLASSNAME,
|
_GLFW_WNDCLASSNAME,
|
||||||
L"GLFW helper window",
|
L"GLFW message window",
|
||||||
WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
|
WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
|
||||||
0, 0, 1, 1,
|
0, 0, 1, 1,
|
||||||
HWND_MESSAGE, NULL,
|
NULL, NULL,
|
||||||
GetModuleHandleW(NULL),
|
GetModuleHandleW(NULL),
|
||||||
NULL);
|
NULL);
|
||||||
if (!window)
|
if (!window)
|
||||||
|
@ -467,14 +467,13 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
|||||||
|
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
|
case WM_DISPLAYCHANGE:
|
||||||
|
_glfwPollMonitorsWin32();
|
||||||
|
break;
|
||||||
|
|
||||||
case WM_DEVICECHANGE:
|
case WM_DEVICECHANGE:
|
||||||
{
|
{
|
||||||
if (wParam == DBT_DEVNODES_CHANGED)
|
if (wParam == DBT_DEVICEARRIVAL)
|
||||||
{
|
|
||||||
_glfwPollMonitorsWin32();
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
else if (wParam == DBT_DEVICEARRIVAL)
|
|
||||||
{
|
{
|
||||||
DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam;
|
DEV_BROADCAST_HDR* dbh = (DEV_BROADCAST_HDR*) lParam;
|
||||||
if (dbh)
|
if (dbh)
|
||||||
|
Loading…
Reference in New Issue
Block a user