[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 authored and Geoffrey McRae committed 2021-01-17 10:19:22 +11:00
1 parent 56c80a15e6
commit d926319230
1 file changed
+6 -1
+6 -1
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,