mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] wayland: be explicit about lack of warp support
Falling back on SDL is misleading, since SDL will bail out as well.
This commit is contained in:
parent
56c80a15e6
commit
d926319230
@ -386,6 +386,11 @@ static void waylandUngrabKeyboard(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void waylandWarpMouse(int x, int y, bool exiting)
|
||||
{
|
||||
// This is an unsupported operation on Wayland.
|
||||
}
|
||||
|
||||
static void waylandFree(void)
|
||||
{
|
||||
waylandUngrabPointer();
|
||||
@ -768,7 +773,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
|
||||
.ungrabPointer = waylandUngrabPointer,
|
||||
.grabKeyboard = waylandGrabKeyboard,
|
||||
.ungrabKeyboard = waylandUngrabKeyboard,
|
||||
.warpMouse = NULL, // fallback to SDL
|
||||
.warpMouse = waylandWarpMouse,
|
||||
|
||||
.cbInit = waylandCBInit,
|
||||
.cbNotice = waylandCBNotice,
|
||||
|
Loading…
Reference in New Issue
Block a user