summaryrefslogtreecommitdiff
path: root/src/data-device.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2013-06-14 10:08:01 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-06-14 16:51:20 -0400
commita0d2dde6cd31e60595b9cf5b8901a5b3e0fee0ab (patch)
tree816efa1419a973976439a748aa2fb331095cfa92 /src/data-device.c
parent44a3863a1770379eb5e53c442d6205c55b049546 (diff)
downloadweston-a0d2dde6cd31e60595b9cf5b8901a5b3e0fee0ab.tar.gz
output: Use wl_resource_get accessors for weston_output resources
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/data-device.c')
-rw-r--r--src/data-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data-device.c b/src/data-device.c
index 1735620d..37f6996f 100644
--- a/src/data-device.c
+++ b/src/data-device.c
@@ -366,8 +366,8 @@ data_device_start_drag(struct wl_client *client, struct wl_resource *resource,
struct wl_resource *origin_resource,
struct wl_resource *icon_resource, uint32_t serial)
{
- struct weston_seat *seat = resource->data;
- struct weston_drag *drag = resource->data;
+ struct weston_seat *seat = wl_resource_get_user_data(resource);
+ struct weston_drag *drag = wl_resource_get_user_data(resource);
struct weston_surface *icon = NULL;
if (seat->pointer->button_count == 0 ||
@@ -573,7 +573,7 @@ get_data_device(struct wl_client *client,
struct wl_resource *manager_resource,
uint32_t id, struct wl_resource *seat_resource)
{
- struct weston_seat *seat = seat_resource->data;
+ struct weston_seat *seat = wl_resource_get_user_data(seat_resource);
struct wl_resource *resource;
resource = wl_client_add_object(client, &wl_data_device_interface,