X11: Fix parent window handle initialization
From upstream: 9372ba95fa.
This commit is contained in:
parent
74bed658e1
commit
ed9f9db1b0
1 changed files with 1 additions and 6 deletions
7
glfw/x11_window.c
vendored
7
glfw/x11_window.c
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue