ecore_wl2: Update compositor bind now that damage_buffer is released

We had to do some weird special case stuff when binding wl_compositor
because we implemented damage buffer before depending on a wayland
release that provided it.

Now our wayland dep is newer than damage buffer, so the test can be
more conventional.

Should have no functional change.
This commit is contained in:
Derek Foreman 2017-02-10 10:25:53 -06:00
parent d53ed9b0db
commit 3dd19f16cb
1 changed files with 2 additions and 6 deletions

View File

@ -125,14 +125,10 @@ _cb_global_add(void *data, struct wl_registry *registry, unsigned int id, const
if (!strcmp(interface, "wl_compositor"))
{
unsigned int request_version = 3;
#ifdef WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
request_version = 4;
#endif
ewd->wl.compositor_version = MIN(version, 4);
ewd->wl.compositor =
wl_registry_bind(registry, id, &wl_compositor_interface,
MIN(version, request_version));
ewd->wl.compositor_version = MIN(version, request_version);
ewd->wl.compositor_version);
}
else if (!strcmp(interface, "wl_subcompositor"))
{