libweston: make wl_output point to weston_head
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 27 Mar 2017 13:31:25 +0000 (16:31 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 10 Apr 2018 11:33:59 +0000 (14:33 +0300)
commit055c1137aebc1cd1fc7c8d1a653edb595734b88a
tree3d94f2cd0687762acf1c5662f74c02ed15883857
parent0534762b219e7222493f92cbde3e9bde8e39170d
libweston: make wl_output point to weston_head

The user data of a wl_resource representing a wl_output protocol object
used to be a pointer to weston_output. Now that weston_output is being
split, wl_output more accurately refers to weston_head which is a single
monitor.

Change the wl_output user data to point to weston_head.
weston_output_from_resource() is replaced with
weston_head_from_resource().

This change is not strictly necessary, but architecturally it is the
right thing to do. In the future there might appear the need to refer to
a specific head of a cloned pair, for instance.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
v5 Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
compositor/weston-screenshooter.c
desktop-shell/input-panel.c
desktop-shell/shell.c
fullscreen-shell/fullscreen-shell.c
ivi-shell/input-panel-ivi.c
libweston-desktop/wl-shell.c
libweston-desktop/xdg-shell-v6.c
libweston/compositor.c
libweston/compositor.h
tests/weston-test.c