Win32: Allow iconifying undecorated windows

Fixes #861.
This commit is contained in:
Camilla Berglund
2016-09-14 13:05:13 +02:00
parent f79a52fe9b
commit 838c4e938c
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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;