Fix setting of _NET_WM_STATE.