64ef87554b
Rationalise it a little bit so we don't need pre-declarations of static functions, and the order of creation more closely matches the others, including making the same calls to explicitly set the output. Doing this makes the behaviour match the other users of the same code pattern. In making them the same, we make desktop-shell code a little less magically divergent where people might wonder what the correct pattern is to use. After we have moved all users to a uniform pattern, later commits are then able to migrate these users to common helper code, which reduces code duplication, improves code clarity as it is no longer necessary to wonder about the exact semantics of every special-case user of this common pattern, and makes it easier to make interface changes which improve and clarify the patterns which are prevalent throughout the desktop-shell code. Signed-off-by: Daniel Stone <daniels@collabora.com>