Skip to content
Snippets Groups Projects
Commit 838c4e93 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Win32: Allow iconifying undecorated windows

Fixes #861.
parent f79a52fe
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ information on what to include when reporting a bug.
- Added `glfwGetKeyScancode` function that allows retrieving platform depen-
dent scancodes for keys (#830)
- Bugfix: Calling `glfwMaximizeWindow` on a full screen window was not ignored
- [Win32] Bugfix: Undecorated windows could not be iconified by the user (#861)
## Contact
......
......@@ -46,9 +46,11 @@ static DWORD getWindowStyle(const _GLFWwindow* window)
style |= WS_POPUP;
else
{
style |= WS_SYSMENU | WS_MINIMIZEBOX;
if (window->decorated)
{
style |= WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX;
style |= WS_CAPTION;
if (window->resizable)
style |= WS_MAXIMIZEBOX | WS_THICKFRAME;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment