Remoting: initialize real DRM output before remoted output
Currently, if remoting is enabled, a remoted output location is (0, 0) and real DRM output is located the right of the remoted output because the remoted output is registered before real DRM output. I think that it is better swapping both outputs, so that I want to initialize remoting plugin after real DRM output.
compositor/main.c:
int main(int argc, char *argv[])
{
...
if (load_backend(wet.compositor, backend, &argc, argv, config) < 0) {
weston_log("fatal: failed to create compositor backend\n");
goto out;
}
weston_compositor_flush_heads_changed(wet.compositor);
if (wet.init_failed)
goto out;
+ /* How about initializing remoting plugin in here? for example: */
+ if (strstr(backend, "drm-backend.so"))
+ load_remoting(wet.compositor, config);
What do you think?