[Bug #8647] Pass windows on #getOrientation()