[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:
Tudor Brindus 2021-01-16 13:07:05 -05:00 committed by Geoffrey McRae
parent 56c80a15e6
commit d926319230

View file

@ -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,