window: avoid a needless double-type-conversion.