mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix: screencopy cursor position like hl
81cd526f92
yes, almost forgot that I also have to implement the fix here, not just
upstream
This commit is contained in:
parent
1aabd346eb
commit
761acf0e60
1 changed files with 7 additions and 0 deletions
|
@ -76,10 +76,17 @@ void CDynamicCursors::renderSoftware(CPointerManager* pointers, SP<CMonitor> pMo
|
||||||
return;
|
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();
|
auto box = state->box.copy();
|
||||||
if (overridePos.has_value()) {
|
if (overridePos.has_value()) {
|
||||||
box.x = overridePos->x;
|
box.x = overridePos->x;
|
||||||
box.y = overridePos->y;
|
box.y = overridePos->y;
|
||||||
|
|
||||||
|
box.translate(-pointers->m_currentCursorImage.hotspot);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto texture = pointers->getCurrentCursorTexture();
|
auto texture = pointers->getCurrentCursorTexture();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue