Restore window size after printing