mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[client] wayland: require wl_compositor v3 instead of v4
The only addition to v4 was `wl_surface_damage_buffer`, which we do not
use.
This change should allow running on more compositors (even though v4 is
already old -- 5 years now).
Ref
3384f69ecf
.
This commit is contained in:
parent
d6b8823dce
commit
97009027d1
@ -36,8 +36,8 @@ static void registryGlobalHandler(void * data, struct wl_registry * registry,
|
|||||||
wlWm.seat = wl_registry_bind(wlWm.registry, name, &wl_seat_interface, 1);
|
wlWm.seat = wl_registry_bind(wlWm.registry, name, &wl_seat_interface, 1);
|
||||||
else if (!strcmp(interface, wl_shm_interface.name))
|
else if (!strcmp(interface, wl_shm_interface.name))
|
||||||
wlWm.shm = wl_registry_bind(wlWm.registry, name, &wl_shm_interface, 1);
|
wlWm.shm = wl_registry_bind(wlWm.registry, name, &wl_shm_interface, 1);
|
||||||
else if (!strcmp(interface, wl_compositor_interface.name) && version >= 4)
|
else if (!strcmp(interface, wl_compositor_interface.name) && version >= 3)
|
||||||
wlWm.compositor = wl_registry_bind(wlWm.registry, name, &wl_compositor_interface, 4);
|
wlWm.compositor = wl_registry_bind(wlWm.registry, name, &wl_compositor_interface, 3);
|
||||||
else if (!strcmp(interface, xdg_wm_base_interface.name))
|
else if (!strcmp(interface, xdg_wm_base_interface.name))
|
||||||
wlWm.xdgWmBase = wl_registry_bind(wlWm.registry, name, &xdg_wm_base_interface, 1);
|
wlWm.xdgWmBase = wl_registry_bind(wlWm.registry, name, &xdg_wm_base_interface, 1);
|
||||||
else if (!strcmp(interface, zxdg_decoration_manager_v1_interface.name))
|
else if (!strcmp(interface, zxdg_decoration_manager_v1_interface.name))
|
||||||
|
@ -139,7 +139,7 @@ bool waylandWindowInit(const char * title, bool fullscreen, bool maximize, bool
|
|||||||
|
|
||||||
if (!wlWm.compositor)
|
if (!wlWm.compositor)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Compositor missing wl_compositor (version 4+), will not proceed");
|
DEBUG_ERROR("Compositor missing wl_compositor (version 3+), will not proceed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user