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;