mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 15:25:50 +00:00
X11: Fix invalid read when clearing GLFW_FLOATING
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user