aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-13 17:39:41 +0000
committerVaxry <[email protected]>2024-02-13 17:39:51 +0000
commitb500e5699b9aa0f5a92805707bcc88ba151a7c82 (patch)
tree6c9227b1cf721efeebc6bf50c50a12e57b6ac257
parent61378380eee10e67726a10fcd7d74859e2b9fbf6 (diff)
downloadHyprland-b500e5699b9aa0f5a92805707bcc88ba151a7c82.tar.gz
Hyprland-b500e5699b9aa0f5a92805707bcc88ba151a7c82.zip
renderer: update cursor also when hostpot only changes
fixes #4691
-rw-r--r--src/render/Renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 68df3418..6c660c0f 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -2147,7 +2147,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
void CHyprRenderer::setCursorSurface(wlr_surface* surf, int hotspotX, int hotspotY, bool force) {
m_bCursorHasSurface = surf;
- if ((surf == m_sLastCursorData.surf || m_bCursorHidden) && !force)
+ if ((surf == m_sLastCursorData.surf || m_bCursorHidden) && hotspotX == m_sLastCursorData.hotspotX && hotspotY == m_sLastCursorData.hotspotY && !force)
return;
m_sLastCursorData.name = "";