X11: Fix invalid read when clearing GLFW_FLOATING
From upstream: https://github.com/glfw/glfw/commit/0b652a44d2afe593d6eca8a0d586c20555a0497c.
This commit is contained in:
Vendored
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user