weston/compositor
Pekka Paalanen cf0a476b8e cms-colord: find a good head
The 'head' member of 'struct weston_output' is going to go unused and
then disappear, so stop using it and find a head from the proper list.

However, this leaves a problem in cms-colord: if you have multiple
monitors driver with the same CRTC, what do you say to the color
management system? The monitors could be different, but all the color
LUTs etc. are in the CRTC and are shared, as is the framebuffer.

Do the simple hack here and just use whatever head happens to be the
first in the list.

The warning is printed in get_output_id(), because if heads are added or
removed while the output is enabled, the id could change.

v6:
- add weston_output_get_first_head(), at first use
- add warning message for nr. heads > 1

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
2018-04-12 14:26:17 +03:00
..
cms-colord.c cms-colord: find a good head 2018-04-12 14:26:17 +03:00
cms-helper.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
cms-helper.h Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
cms-static.c weston: Properly namespace modules entrypoint 2017-01-17 18:24:56 +01:00
main.c weston: Add a help string for --xwayland 2018-03-16 13:59:00 +02:00
screen-share.c libweston: Use struct timespec for key events 2017-11-27 11:42:07 +02:00
systemd-notify.c systemd: fix Wincompatible-pointer-type 2017-01-27 17:25:11 +02:00
text-backend.c libweston: Make weston_seat release safe 2018-02-15 13:14:14 +02:00
weston-screenshooter.c libweston: make wl_output point to weston_head 2018-04-10 14:33:59 +03:00
weston.desktop Remove dbus-launch from weston.desktop 2017-01-18 12:21:57 +00:00
weston.h weston: Make the shell entrypoint specific 2017-01-17 18:24:58 +01:00
weston.pc.in libweston: use new versioning scheme 2016-08-02 13:52:58 +03:00
xwayland.c xwayland: Cleanup error message on spawn failure Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> 2016-07-07 10:48:34 -07:00