boxpointer: Fix coordinate

Eeeks. Spotted by coverity in CID 351259.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1950>
This commit is contained in:
Florian Müllner 2021-08-13 02:58:33 +02:00
parent 474fd47fc0
commit 6f7df32b0e

View File

@ -556,7 +556,7 @@ var BoxPointer = GObject.registerClass({
arrowOrigin = y1; arrowOrigin = y1;
} else if (arrowOrigin >= (y2 - (borderRadius + halfBase))) { } else if (arrowOrigin >= (y2 - (borderRadius + halfBase))) {
if (arrowOrigin < y2) if (arrowOrigin < y2)
resX -= y2 - arrowOrigin; resY -= y2 - arrowOrigin;
arrowOrigin = y2; arrowOrigin = y2;
} }
break; break;