From 6f7df32b0ef1399f0ebcba420ad765a49ff9d34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 13 Aug 2021 02:58:33 +0200 Subject: [PATCH] boxpointer: Fix coordinate Eeeks. Spotted by coverity in CID 351259. Part-of: --- js/ui/boxpointer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index 82d28cd83..c7a8f92d0 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -556,7 +556,7 @@ var BoxPointer = GObject.registerClass({ arrowOrigin = y1; } else if (arrowOrigin >= (y2 - (borderRadius + halfBase))) { if (arrowOrigin < y2) - resX -= y2 - arrowOrigin; + resY -= y2 - arrowOrigin; arrowOrigin = y2; } break;