From 350600ed8948e05ffd3cdf957cf229b39a486706 Mon Sep 17 00:00:00 2001 From: "robbin.marcus" Date: Sat, 24 Sep 2022 23:59:25 +0200 Subject: [PATCH] Add WS_THICKFRAME for resizing undecorated windows --- src/null_window.c | 8 -------- src/win32_window.c | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/null_window.c b/src/null_window.c index 1d4809bd..103bf4ee 100644 --- a/src/null_window.c +++ b/src/null_window.c @@ -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; diff --git a/src/win32_window.c b/src/win32_window.c index 89422c4d..024a174e 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -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;