if (!(res =
wl_resource_create(client, &wl_compositor_interface,
- MIN(version, COMPOSITOR_VERSION), id)))
+ version, id)))
{
ERR("Could not create compositor resource: %m");
wl_client_post_no_memory(client);
if (!(res =
wl_resource_create(client, &wl_subcompositor_interface,
- MIN(version, 1), id)))
+ version, id)))
{
ERR("Could not create subcompositor resource: %m");
wl_client_post_no_memory(client);
if (!(output = data)) return;
resource =
- wl_resource_create(client, &wl_output_interface, MIN(version, 2), id);
+ wl_resource_create(client, &wl_output_interface, version, id);
if (!resource)
{
wl_client_post_no_memory(client);
{
struct wl_resource *res;
- res = wl_resource_create(client, &wl_seat_interface, MIN(version, 4), id);
+ res = wl_resource_create(client, &wl_seat_interface, version, id);
if (!res)
{
ERR("Could not create seat resource: %m");
{
struct wl_resource *res;
- if (!(res = wl_resource_create(client, &wl_shell_interface, MIN(version, 1), id)))
+ if (!(res = wl_resource_create(client, &wl_shell_interface, version, id)))
{
wl_client_post_no_memory(client);
return;
{
struct wl_resource *res;
- if (!(res = wl_resource_create(client, &xdg_shell_interface, MIN(version, 1), id)))
+ if (!(res = wl_resource_create(client, &xdg_shell_interface, version, id)))
{
wl_client_post_no_memory(client);
return;