mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 11:35:11 +00:00
X11: Fix parent window handle initialization
This should have been initialized to the screen root, not None. This
issue was introduced by fe57e3c292
.
Fixes #1620.
This commit is contained in:
parent
aa5e313561
commit
9372ba95fa
@ -622,6 +622,7 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
|
||||
|
||||
_glfwGrabErrorHandlerX11();
|
||||
|
||||
window->x11.parent = _glfw.x11.root;
|
||||
window->x11.handle = XCreateWindow(_glfw.x11.display,
|
||||
_glfw.x11.root,
|
||||
0, 0, // Position
|
||||
@ -1258,12 +1259,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 New Issue
Block a user