wayland: Refactor output initialization code
authorBryce Harrington <bryce@osg.samsung.com>
Sat, 28 Feb 2015 00:23:11 +0000 (19:23 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Sat, 28 Feb 2015 00:23:11 +0000 (19:23 -0500)
commit9a4024a20af7c789f1672bde8f08c6a2896dbdff
tree3cc0fa8289d018158b9a2a0857c8fb20580e5f9e
parent5bac79422e3e836c115fba31334731e3b417f9b2
wayland: Refactor output initialization code

Summary:
The code to initialize outputs has duplicate stanzas for updating the
data members of the output structure.  This set of refactoring steps
shuffles things around to eliminate the redundant code.  I think this
also makes the code easier to follow too.

This also breaks out a new internal routine for looking up outputs by
id.  I suspect this will have general usefulness later.

Reviewers: devilhorns, cedric, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2077
src/bin/e_comp_wl.c