X11: Fix invalid read when clearing GLFW_FLOATING
From upstream: 0b652a44d2.
This commit is contained in:
parent
7472a992ed
commit
79532a315c
2
glfw/x11_window.c
vendored
2
glfw/x11_window.c
vendored
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user