Adjust window properties