mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +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)
|
static void waylandFree(void)
|
||||||
{
|
{
|
||||||
waylandUngrabPointer();
|
waylandUngrabPointer();
|
||||||
@ -768,7 +773,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
|
|||||||
.ungrabPointer = waylandUngrabPointer,
|
.ungrabPointer = waylandUngrabPointer,
|
||||||
.grabKeyboard = waylandGrabKeyboard,
|
.grabKeyboard = waylandGrabKeyboard,
|
||||||
.ungrabKeyboard = waylandUngrabKeyboard,
|
.ungrabKeyboard = waylandUngrabKeyboard,
|
||||||
.warpMouse = NULL, // fallback to SDL
|
.warpMouse = waylandWarpMouse,
|
||||||
|
|
||||||
.cbInit = waylandCBInit,
|
.cbInit = waylandCBInit,
|
||||||
.cbNotice = waylandCBNotice,
|
.cbNotice = waylandCBNotice,
|
||||||
|
Loading…
Reference in New Issue
Block a user