mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] rename warpMouse to warpPointer
This is more truthful in what it does; the pointer may be backed by a non-mouse device.
This commit is contained in:

committed by
Geoffrey McRae

parent
d926319230
commit
f1033fa4bb
@@ -131,7 +131,7 @@ static void sdlUngrabKeyboard(void)
|
||||
sdl.keyboardGrabbed = false;
|
||||
}
|
||||
|
||||
static void sdlWarpMouse(int x, int y, bool exiting)
|
||||
static void sdlWarpPointer(int x, int y, bool exiting)
|
||||
{
|
||||
if (sdl.exiting)
|
||||
return;
|
||||
@@ -160,7 +160,7 @@ struct LG_DisplayServerOps LGDS_SDL =
|
||||
.ungrabPointer = sdlUngrabPointer,
|
||||
.grabKeyboard = sdlGrabKeyboard,
|
||||
.ungrabKeyboard = sdlUngrabKeyboard,
|
||||
.warpMouse = sdlWarpMouse,
|
||||
.warpPointer = sdlWarpPointer,
|
||||
|
||||
/* SDL does not have clipboard support */
|
||||
.cbInit = NULL,
|
||||
|
@@ -386,7 +386,7 @@ static void waylandUngrabKeyboard(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void waylandWarpMouse(int x, int y, bool exiting)
|
||||
static void waylandWarpPointer(int x, int y, bool exiting)
|
||||
{
|
||||
// This is an unsupported operation on Wayland.
|
||||
}
|
||||
@@ -773,7 +773,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
|
||||
.ungrabPointer = waylandUngrabPointer,
|
||||
.grabKeyboard = waylandGrabKeyboard,
|
||||
.ungrabKeyboard = waylandUngrabKeyboard,
|
||||
.warpMouse = waylandWarpMouse,
|
||||
.warpPointer = waylandWarpPointer,
|
||||
|
||||
.cbInit = waylandCBInit,
|
||||
.cbNotice = waylandCBNotice,
|
||||
|
@@ -433,7 +433,7 @@ static void x11UngrabKeyboard(void)
|
||||
x11.keyboardGrabbed = false;
|
||||
}
|
||||
|
||||
static void x11WarpMouse(int x, int y, bool exiting)
|
||||
static void x11WarpPointer(int x, int y, bool exiting)
|
||||
{
|
||||
XWarpPointer(
|
||||
x11.display,
|
||||
@@ -785,7 +785,7 @@ struct LG_DisplayServerOps LGDS_X11 =
|
||||
.ungrabPointer = x11UngrabPointer,
|
||||
.grabKeyboard = x11GrabKeyboard,
|
||||
.ungrabKeyboard = x11UngrabKeyboard,
|
||||
.warpMouse = x11WarpMouse,
|
||||
.warpPointer = x11WarpPointer,
|
||||
|
||||
.cbInit = x11CBInit,
|
||||
.cbNotice = x11CBNotice,
|
||||
|
Reference in New Issue
Block a user