mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 10:05:10 +00:00
Fix create as child window style
This commit is contained in:
parent
a94c9782d5
commit
f1284eb884
@ -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,
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user