Save window size when maximizing with top edge