[client] wayland: report that wayland has no warp support

This commit is contained in:
Geoffrey McRae 2021-01-16 21:19:20 +11:00
parent 701dfd5694
commit bb37a880f0

View file

@ -377,6 +377,17 @@ static void waylandFree(void)
wl_registry_destroy(wm.registry);
}
static bool waylandGetProp(LG_DSProperty prop, void * ret)
{
if (prop == LG_DS_WARP_SUPPORT)
{
*(bool*)ret = false;
return true;
}
return false;
}
static bool waylandEventFilter(SDL_Event * event)
{
/* prevent the default processing for the following events */
@ -738,6 +749,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
.init = waylandInit,
.startup = waylandStartup,
.free = waylandFree,
.getProp = waylandGetProp,
.eventFilter = waylandEventFilter,
.grabPointer = waylandGrabPointer,
.ungrabPointer = waylandUngrabPointer,