[PATCH 11/11] servmon(): move window handling functions