Added check for _NET_WM_STATE atom. Needed on SteamOS.