add ability to query window min/max state

This implement #80