Skip to content

Commit

Permalink
Fix glfw create as child window stye
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Feb 25, 2024
1 parent de3b871 commit 8789204
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thirdparty/glfw/src/win32_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ static int createNativeWindow(_GLFWwindow* window,
const _GLFWfbconfig* fbconfig)
{
int frameX, frameY, frameWidth, frameHeight;
WCHAR* wideTitle;
WCHAR* wideTitle;
DWORD style = getWindowStyle(window);
DWORD exStyle = getWindowExStyle(window);

Expand Down Expand Up @@ -1389,7 +1389,6 @@ static int createNativeWindow(_GLFWwindow* window,
if (!wideTitle)
return GLFW_FALSE;

window->win32.handleParent = wndconfig->win32.handleParent;
window->win32.handle = CreateWindowExW(exStyle,
MAKEINTATOM(_glfw.win32.mainWindowClass),
wideTitle,
Expand Down Expand Up @@ -1502,6 +1501,8 @@ GLFWbool _glfwCreateWindowWin32(_GLFWwindow* window,
const _GLFWctxconfig* ctxconfig,
const _GLFWfbconfig* fbconfig)
{
window->win32.handleParent = wndconfig->win32.handleParent;

if (!createNativeWindow(window, wndconfig, fbconfig))
return GLFW_FALSE;

Expand Down

0 comments on commit 8789204

Please sign in to comment.