diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-05-25 20:43:29 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-05-25 20:43:38 +0200 |
| commit | 90f262aada21af9be1c5ccf89b8dc5e0d28478f1 (patch) | |
| tree | 7243404daa424f37571c0e830bbccd2c5533b67c /src/managers/PointerManager.cpp | |
| parent | 2ff95bba3fec58b9f1a127fe72dda84b1420a7af (diff) | |
pointer: remove dividing hotspot by scale
fixes #6117
Diffstat (limited to 'src/managers/PointerManager.cpp')
| -rw-r--r-- | src/managers/PointerManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp index b199881e..7df2d6f4 100644 --- a/src/managers/PointerManager.cpp +++ b/src/managers/PointerManager.cpp @@ -574,7 +574,7 @@ CBox CPointerManager::getCursorBoxLogicalForMonitor(SP<CMonitor> pMonitor) { } CBox CPointerManager::getCursorBoxGlobal() { - return CBox{pointerPos, currentCursorImage.size / currentCursorImage.scale}.translate(-currentCursorImage.hotspot / currentCursorImage.scale); + return CBox{pointerPos, currentCursorImage.size / currentCursorImage.scale}.translate(-currentCursorImage.hotspot); } Vector2D CPointerManager::closestValid(const Vector2D& pos) { |
