Skip to content

Commit

Permalink
Increment version to 3 for data_(offer|source|device) too
Browse files Browse the repository at this point in the history
  • Loading branch information
L-as committed Oct 14, 2017
1 parent efdc5a3 commit e7e3e9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compositor/seat/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ wl_cb_manager_create_data_source(struct wl_client *client, struct wl_resource *r
return;

wlc_resource r;
if (!(r = wlc_resource_create(&manager->sources, client, &wl_data_source_interface, wl_resource_get_version(resource), 2, id)))
if (!(r = wlc_resource_create(&manager->sources, client, &wl_data_source_interface, wl_resource_get_version(resource), 3, id)))
return;

struct wlc_data_source *source = convert_from_wlc_resource(r, "data-source");
Expand Down Expand Up @@ -204,7 +204,7 @@ wl_cb_manager_get_data_device(struct wl_client *client, struct wl_resource *reso
return;

wlc_resource r;
if (!(r = wlc_resource_create(&seat->manager.devices, client, &wl_data_device_interface, wl_resource_get_version(resource), 2, id)))
if (!(r = wlc_resource_create(&seat->manager.devices, client, &wl_data_device_interface, wl_resource_get_version(resource), 3, id)))
return;

wlc_resource_implement(r, &wl_data_device_implementation, &seat->manager);
Expand Down Expand Up @@ -237,7 +237,7 @@ wlc_data_device_manager_offer(struct wlc_data_device_manager *manager, struct wl
struct wlc_data_source *source = manager->source;

wlc_resource offer = 0;
if (source && !(offer = wlc_resource_create(&manager->offers, client, &wl_data_offer_interface, wl_resource_get_version(resource), 2, 0)))
if (source && !(offer = wlc_resource_create(&manager->offers, client, &wl_data_offer_interface, wl_resource_get_version(resource), 3, 0)))
return;

if (offer) {
Expand Down

0 comments on commit e7e3e9c

Please sign in to comment.