Set logical size and reset window size when you press s.