mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Undecorated window support on win/mac/linux.
This commit is contained in:
committed by
Camilla Berglund
parent
2f7cad5765
commit
8e2e7b37a1
+7
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user