X11: Fix parent window handle initialization

From upstream: https://github.com/glfw/glfw/commit/9372ba95faabd1bb45280d201d6ccdae77bf872e.
This commit is contained in:
Luflosi
2020-01-15 13:19:33 +01:00
parent 74bed658e1
commit ed9f9db1b0
+1 -6
View File
@@ -542,6 +542,7 @@ static bool createNativeWindow(_GLFWwindow* window,
_glfwGrabErrorHandlerX11();
window->x11.parent = _glfw.x11.root;
window->x11.handle = XCreateWindow(_glfw.x11.display,
_glfw.x11.root,
0, 0, // Position
@@ -1184,12 +1185,6 @@ static void processEvent(XEvent *event)
switch (event->type)
{
case CreateNotify:
{
window->x11.parent = event->xcreatewindow.parent;
return;
}
case ReparentNotify:
{
window->x11.parent = event->xreparent.parent;