mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-16 03:21:15 +00:00
[client] overlay: realign cursor when turning off overlay
This is only done in non-capture mode to avoid messing up games.
This commit is contained in:
parent
96fa8891c8
commit
71901414d1
@ -668,5 +668,11 @@ void core_updateOverlayState(void)
|
|||||||
core_setGrabQuiet(wasGrabbed);
|
core_setGrabQuiet(wasGrabbed);
|
||||||
core_invalidatePointer(true);
|
core_invalidatePointer(true);
|
||||||
app_invalidateWindow(false);
|
app_invalidateWindow(false);
|
||||||
|
|
||||||
|
if (!g_cursor.grab)
|
||||||
|
{
|
||||||
|
g_cursor.realign = true;
|
||||||
|
core_handleMouseNormal(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user