broader detection of the iconify event

Revert using getXWindowStates() instead of gdk_window_get_state(). Xfce only
sets_NET_WM_STATE_HIDDEN after iconify.