mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-01-06 20:02:28 +00:00
[client] wm: added new platform agnostic wmWarpMouse
This commit is contained in:
@@ -846,18 +846,7 @@ static void warpMouse(int x, int y, bool disable)
|
||||
if (g_cursor.pos.x == x && g_cursor.pos.y == y)
|
||||
return;
|
||||
|
||||
if (g_state.wminfo.subsystem == SDL_SYSWM_X11)
|
||||
{
|
||||
XWarpPointer(
|
||||
g_state.wminfo.info.x11.display,
|
||||
None,
|
||||
g_state.wminfo.info.x11.window,
|
||||
0, 0, 0, 0,
|
||||
x, y);
|
||||
XSync(g_state.wminfo.info.x11.display, False);
|
||||
}
|
||||
else
|
||||
SDL_WarpMouseInWindow(g_state.window, x, y);
|
||||
wmWarpMouse(x, y);
|
||||
}
|
||||
|
||||
static bool isValidCursorLocation(int x, int y)
|
||||
|
||||
Reference in New Issue
Block a user