mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +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
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue