From ed9f9db1b05a5d225f2754314d498e09b8a42764 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Tue, 14 Jan 2020 21:57:18 +0100 Subject: [PATCH] X11: Fix parent window handle initialization From upstream: https://github.com/glfw/glfw/commit/9372ba95faabd1bb45280d201d6ccdae77bf872e. --- glfw/x11_window.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/glfw/x11_window.c b/glfw/x11_window.c index b0e408ff7..7cb1c3ace 100644 --- a/glfw/x11_window.c +++ b/glfw/x11_window.c @@ -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;