Improved the performances of Window::getSize() (the size is now cached)