From 761acf0e602e0f6549e5e6c0289a0402e6073489 Mon Sep 17 00:00:00 2001 From: Virt <41426325+VirtCode@users.noreply.github.com> Date: Sat, 24 May 2025 00:15:05 +0200 Subject: [PATCH] fix: screencopy cursor position like hl https://github.com/hyprwm/Hyprland/commit/81cd526f923f4a9074bbfef59b4c7e9f3350c349 yes, almost forgot that I also have to implement the fix here, not just upstream --- src/cursor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cursor.cpp b/src/cursor.cpp index 537f498..bb9f4b3 100644 --- a/src/cursor.cpp +++ b/src/cursor.cpp @@ -76,10 +76,17 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP pMo return; } + // don't render cursor if forced but we are already using sw cursors for the monitor + // otherwise we draw the cursor again for screencopy when using sw cursors + if (forceRender && (state->hardwareFailed || state->softwareLocks != 0)) + return; + auto box = state->box.copy(); if (overridePos.has_value()) { box.x = overridePos->x; box.y = overridePos->y; + + box.translate(-pointers->m_currentCursorImage.hotspot); } auto texture = pointers->getCurrentCursorTexture();