mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +00:00
[host] fix cursor visibility bug
This commit is contained in:
parent
db907b1b67
commit
ce4f1be2a6
1 changed files with 4 additions and 3 deletions
|
@ -417,9 +417,10 @@ unsigned int Capture::DXGI::Capture()
|
||||||
if (GetCursorPos(&curPos) && (curPos.x != m_lastCursorX || curPos.y != m_lastCursorY))
|
if (GetCursorPos(&curPos) && (curPos.x != m_lastCursorX || curPos.y != m_lastCursorY))
|
||||||
{
|
{
|
||||||
ret |= GRAB_STATUS_CURSOR;
|
ret |= GRAB_STATUS_CURSOR;
|
||||||
cursor.hasPos = true;
|
cursor.hasPos = true;
|
||||||
cursor.x = m_lastCursorX = curPos.x;
|
cursor.x = m_lastCursorX = curPos.x;
|
||||||
cursor.y = m_lastCursorY = curPos.y;
|
cursor.y = m_lastCursorY = curPos.y;
|
||||||
|
cursor.visible = m_lastMouseVis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue