mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] wayland: gracefully degrade when protocols are unsupported
zwp_relative_pointer_manager_v1 and zwp_pointer_constraints_v1 are supported by GNOME/KDE/sway (and most other compositors), but they are not a required part of the protocol. Some users also run software in one-off nested compositors like cage[0] for an extra layer of isolation; cage, at least, does not support pointer captures. This commit makes Looking Glass warn when an optional protocol is unsupported, and fail if a required one is missing. Pointer grab paths have a new guard against the aforementioned protocols being missing. [0]: https://github.com/Hjdskes/cage
This commit is contained in:

committed by
Geoffrey McRae

parent
2a69a19dbd
commit
56c80a15e6
@@ -38,9 +38,10 @@ static bool sdlEarlyInit(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void sdlInit(SDL_SysWMinfo * info)
|
||||
static bool sdlInit(SDL_SysWMinfo * info)
|
||||
{
|
||||
memset(&sdl, 0, sizeof(sdl));
|
||||
return true;
|
||||
}
|
||||
|
||||
static void sdlStartup(void)
|
||||
|
Reference in New Issue
Block a user