Fix for window maximization.