compositor: change weston_surface::destroy_signal argument
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 17 Apr 2015 11:23:38 +0000 (14:23 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 30 Apr 2015 11:51:40 +0000 (14:51 +0300)
commitca79076b03459db80f8f9470fb2d636c01e37953
tree3cf5631e00443d87a437f6aa8a7bc8d9f5b1a806
parent08d3fb762527b15b33c3e63cc7ccea45fff9acfe
compositor: change weston_surface::destroy_signal argument

Pass 'this' weston_surface as the data argument to
weston_surface::destroy_signal listeners. The old &surface->resource was
really just an offsetted pointer to the weston_surface anyway. And,
because 'resource' happened to be the first member in struct weston_surface,
it was actually 'this' weston_surface.

The argument type was accidentally changed in commit
26ed73cee858956f6af07c3e4bb49b5514f17b8b from wl_resource* to
wl_resource**.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/compositor.c
src/compositor.h