weston/desktop-shell
Pekka Paalanen 9ffb25009c libweston: introduce weston_output_from_resource()
This is a simple wrapper for casting the user data of a wl_resource into
a struct weston_output pointer. Using the wrapper clearly marks all the
places where a wl_output protocol object is used.

Replace ALL wl_output related calls to wl_resource_get_user_data() with
a call to weston_output_from_resource().

v2: add type assert in weston_output_from_resource().

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Armin Krezović <krezovic.armin@gmail.com>
2017-07-25 16:08:48 +03:00
..
exposay.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
input-panel.c libweston: introduce weston_output_from_resource() 2017-07-25 16:08:48 +03:00
shell.c libweston: introduce weston_output_from_resource() 2017-07-25 16:08:48 +03:00
shell.h desktop-shell: Enable per-output fade animations 2017-04-21 10:24:17 +02:00