Window-management utilities