Change weston_surface.resource to a wl_resource pointer.
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 7 Jun 2013 03:34:41 +0000 (22:34 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Jun 2013 19:04:49 +0000 (15:04 -0400)
commit26ed73cee858956f6af07c3e4bb49b5514f17b8b
tree9103be3c5be45637f49fb58e10e6eb2839d47322
parenta2ce68fd0346b41b99c6dbbd3c33a5272ce31421
Change weston_surface.resource to a wl_resource pointer.

This is the first in what will be a series of weston patches to convert
instances of wl_resource to pointers so we can make wl_resource opaque.
This patch handles weston_surface and should be the most invasive of the
entire series.  I am sending this one out ahead of the rest for review.

Specifically, my machine is not set up to build XWayland so I have no
ability to test it fully.  Could someone please test with XWayland and let
me know if this causes problems?

Because a surface may be created from XWayland, the resource may not always
exist.  Therefore, a destroy signal was added to weston_surface and
everything used to listen to surface->resource.destroy_signal now listens
to surface->destroy_signal.
src/animation.c
src/compositor.c
src/compositor.h
src/data-device.c
src/input.c
src/shell.c
src/tablet-shell.c
src/text-backend.c
src/xwayland/window-manager.c
src/zoom.c