X11: Cleanup

The window state action is not an atom.

(cherry picked from commit 4e70c95aa3)
This commit is contained in:
Camilla Löwy 2019-12-16 17:44:17 +01:00
parent 94bb2a138e
commit 4df0a2b38e

View File

@ -2619,7 +2619,7 @@ void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)
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,
_glfw.x11.NET_WM_STATE,
action,