X11: Fix invalid read when clearing GLFW_FLOATING

From upstream: 0b652a44d2.
This commit is contained in:
Luflosi 2019-12-18 19:11:57 +01:00
parent 7472a992ed
commit 79532a315c
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

2
glfw/x11_window.c vendored
View File

@ -2483,7 +2483,7 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, bool enabled)
XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.NET_WM_STATE, XA_ATOM, 32,
PropModeReplace, (unsigned char*) &states, count);
PropModeReplace, (unsigned char*) states, count);
}
XFree(states);