X11: Fix parent window handle initialization

From upstream: 9372ba95fa.
This commit is contained in:
Luflosi 2020-01-14 21:57:18 +01:00
parent 74bed658e1
commit ed9f9db1b0
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

7
glfw/x11_window.c vendored
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;