X11: Cleanup

The window state action is not an atom.
This commit is contained in:
Camilla Löwy 2019-12-16 17:44:17 +01:00
parent 9db156421f
commit 4e70c95aa3

View File

@ -2619,7 +2619,7 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)
if (_glfwPlatformWindowVisible(window)) if (_glfwPlatformWindowVisible(window))
{ {
const Atom action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE; const long action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE;
sendEventToWM(window, sendEventToWM(window,
_glfw.x11.NET_WM_STATE, _glfw.x11.NET_WM_STATE,
action, action,