[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); 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) static bool waylandEventFilter(SDL_Event * event)
{ {
/* prevent the default processing for the following events */ /* prevent the default processing for the following events */
@ -738,6 +749,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
.init = waylandInit, .init = waylandInit,
.startup = waylandStartup, .startup = waylandStartup,
.free = waylandFree, .free = waylandFree,
.getProp = waylandGetProp,
.eventFilter = waylandEventFilter, .eventFilter = waylandEventFilter,
.grabPointer = waylandGrabPointer, .grabPointer = waylandGrabPointer,
.ungrabPointer = waylandUngrabPointer, .ungrabPointer = waylandUngrabPointer,