Downgrade wl_compositor protocol to version 4.

Some compositors do not implement protocol in version 5.
This commit is contained in:
Bartosz Taudul 2022-11-06 00:43:09 +01:00
parent ce797d82d5
commit a2f774dc20
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -49,7 +49,7 @@ static void RegistryGlobalCb( void*, struct wl_registry* reg, uint32_t name, con
{
if( strcmp( interface, wl_compositor_interface.name ) == 0 )
{
s_comp = (wl_compositor*)wl_registry_bind( reg, name, &wl_compositor_interface, 5 );
s_comp = (wl_compositor*)wl_registry_bind( reg, name, &wl_compositor_interface, 4 );
}
else if( strcmp( interface, wl_shm_interface.name ) == 0 )
{