summaryrefslogtreecommitdiff
path: root/src/screenshooter.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/screenshooter.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/screenshooter.c')
-rw-r--r--src/screenshooter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screenshooter.c b/src/screenshooter.c
index 3a4f6c23..1fdfc9a0 100644
--- a/src/screenshooter.c
+++ b/src/screenshooter.c
@@ -175,7 +175,8 @@ screenshooter_shoot(struct wl_client *client,
struct wl_resource *output_resource,
struct wl_resource *buffer_resource)
{
- struct weston_output *output = output_resource->data;
+ struct weston_output *output =
+ wl_resource_get_user_data(output_resource);
struct screenshooter_frame_listener *l;
struct wl_buffer *buffer = buffer_resource->data;