Rational window management