Handle _NET_WM_STATE more thoroughly