Add WS_THICKFRAME for resizing undecorated windows

This commit is contained in:
robbin.marcus 2022-09-24 23:59:25 +02:00
parent d966c0c3e6
commit 350600ed89
2 changed files with 5 additions and 8 deletions

View File

@ -470,14 +470,6 @@ void _glfwFocusWindowNull(_GLFWwindow* window)
_glfwInputWindowFocus(window, GLFW_TRUE);
}
void _glfwPlatformDragWindow(_GLFWwindow* window)
{
}
void _glfwPlatformResizeWindow(_GLFWwindow* window, int border)
{
}
int _glfwPlatformWindowFocused(_GLFWwindow* window)
{
return _glfw.null.focusedWindow == window;

View File

@ -58,7 +58,12 @@ static DWORD getWindowStyle(const _GLFWwindow* window)
style |= WS_MAXIMIZEBOX | WS_THICKFRAME;
}
else
{
style |= WS_POPUP;
if (window->resizable)
style |= WS_THICKFRAME;
}
}
return style;