mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:26:00 +01:00
pointer: Include monitor scaling in HW hotspot calculation (#6283)
This commit is contained in:
parent
a60c7283e6
commit
df6ebe358b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue