weston/libweston-desktop
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
..
client.c Introduce libweston-desktop 2016-08-14 09:29:00 +02:00
internal.h libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00
libweston-desktop.c libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00
libweston-desktop.h libweston-desktop: add set_xwayland_position API 2017-01-18 13:21:02 +02:00
libweston-desktop.pc.in libweston-desktop: Fix libweston-desktop.pc 2016-08-15 11:46:46 +03:00
seat.c Introduce libweston-desktop 2016-08-14 09:29:00 +02:00
surface.c libweston-desktop: don't crash when getting the pid for X clients 2016-12-08 11:58:18 +01:00
wl-shell.c libweston: introduce weston_output_from_resource() 2017-07-25 16:08:48 +03:00
xdg-shell-v5.c libweston: introduce weston_output_from_resource() 2017-07-25 16:08:48 +03:00
xdg-shell-v6.c libweston: introduce weston_output_from_resource() 2017-07-25 16:08:48 +03:00
xwayland.c xwm: update override-redirect surface's position upon configure_notify 2017-07-21 17:38:01 +02:00