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:
parent
474fd47fc0
commit
6f7df32b0e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user