constrained to window