X11: Fix invalid read when clearing GLFW_FLOATING

This commit is contained in:
Camilla Löwy
2019-12-17 01:43:08 +01:00
parent 9b6d68ec70
commit 0b652a44d2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -2668,7 +2668,7 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool 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);