refactor: MSWindowsDesks::getCursorPos initialize pos to 0,0

This commit is contained in:
sithlord48
2025-08-05 21:18:10 -04:00
committed by Nick Bolton
parent 38866cf2c1
commit 0cbc922478

View File

@ -226,7 +226,7 @@ void MSWindowsDesks::fakeInputEnd()
void MSWindowsDesks::getCursorPos(int32_t &x, int32_t &y) const
{
POINT pos;
POINT pos{0, 0};
sendMessage(DESKFLOW_MSG_CURSOR_POS, reinterpret_cast<WPARAM>(&pos), 0);
x = pos.x;
y = pos.y;