Use separate fields for saving the window dimensions prior to fullscreening and maximisation. Then use those fields to restore the window dimensions from.
Use separate fields for saving the window dimensions prior to fullscreening and maximisation. Then use those fields to restore the window dimensions from.