Undecorated window support on win/mac/linux.

This commit is contained in:
NathanSweet
2013-04-08 03:07:52 +02:00
committed by Camilla Berglund
parent 2f7cad5765
commit 8e2e7b37a1
6 changed files with 55 additions and 9 deletions
+7 -2
View File
@@ -60,7 +60,7 @@ static void hideCursor(_GLFWwindow* window)
{
if (WindowFromPoint(pos) == window->win32.handle)
SetCursor(NULL);
}
}
}
// Capture mouse cursor
@@ -739,6 +739,11 @@ static int createWindow(_GLFWwindow* window,
window->win32.dwExStyle |= WS_EX_WINDOWEDGE;
}
if (wndconfig->undecorated) {
window->win32.dwStyle = WS_POPUP;
window->win32.dwExStyle = 0;
}
xpos = CW_USEDEFAULT;
ypos = CW_USEDEFAULT;
@@ -938,7 +943,7 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
SetWindowPos(window->win32.handle, HWND_TOP,
0, 0, mode.width, mode.height,
SWP_NOMOVE);
}
}
else
{
int fullWidth, fullHeight;