Fix resizing by dragging top-right window corner
The top-right corner case was overlooked when switching from QRect to QRectF, which results in the window having wrong size.
The top-right corner case was overlooked when switching from QRect to QRectF, which results in the window having wrong size.