[PATCH weston] compositor: Load shell plugin after option modules

Tiago Vignatti tiago.vignatti at intel.com
Tue Sep 25 03:52:43 PDT 2012


It's a quick fix in opposition of the lack of the two-stage module init.
Effectively it fix:

    https://bugs.freedesktop.org/show_bug.cgi?id=55259

Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 src/compositor.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index 8c8dff0..6ed9985 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3115,10 +3115,10 @@ int main(int argc, char *argv[])
 
 	setenv("WAYLAND_DISPLAY", socket_name, 1);
 
-	if (load_modules(ec, modules) < 0)
-		goto out;
 	if (load_modules(ec, option_modules) < 0)
 		goto out;
+	if (load_modules(ec, modules) < 0)
+		goto out;
 
 	if (wl_display_add_socket(display, socket_name)) {
 		weston_log("fatal: failed to add socket: %m\n");
-- 
1.7.9.5



More information about the wayland-devel mailing list