Fixed right half window action when the dock is at the left side of the screen.