diff options
| author | obivan <obvn@icloud.com> | 2024-05-31 10:38:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-31 12:38:52 +0200 |
| commit | df6ebe358b30ee7b49f296e05763e5e4b0edce98 (patch) | |
| tree | df71456acc3beff3ec94b3214e06ae562bc1cb95 /src/managers/PointerManager.cpp | |
| parent | a60c7283e677ed81a466d1c0c864c8a05e192cac (diff) | |
pointer: Include monitor scaling in HW hotspot calculation (#6283)
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 7df2d6f4..66d12076 100644 --- a/src/managers/PointerManager.cpp +++ b/src/managers/PointerManager.cpp @@ -564,7 +564,7 @@ Vector2D CPointerManager::transformedHotspot(SP<CMonitor> pMonitor) { if (!pMonitor->output->cursor_swapchain) return {}; // doesn't matter, we have no hw cursor, and this is only for hw cursors - return CBox{currentCursorImage.hotspot, {0, 0}} + return CBox{currentCursorImage.hotspot * pMonitor->scale, {0, 0}} .transform(wlr_output_transform_invert(pMonitor->transform), pMonitor->output->cursor_swapchain->width, pMonitor->output->cursor_swapchain->height) .pos(); } |
