[PATCH 5/6] compositor: init shell after xserver

Kristian Hoegsberg hoegsberg at gmail.com
Mon Apr 16 13:38:47 PDT 2012


On Mon, Apr 16, 2012 at 05:31:44PM +0300, Tiago Vignatti wrote:
> This reverts a snip from commit d012e9df. On that commit, it was lost the
> ability of calling X applications from desktop panel; xserver module
> was setting DISPLAY only later, after panel was already launched.

Ah, yes, makes sense.
Kristian

> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
> ---
>  src/compositor.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/compositor.c b/src/compositor.c
> index 3e0139d..03f0eb1 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -2601,9 +2601,6 @@ int main(int argc, char *argv[])
>  	ec->option_idle_time = idle_time;
>  	ec->idle_time = idle_time;
>  
> -	if (shell_init(ec) < 0)
> -		exit(EXIT_FAILURE);
> -
>  	xserver_init = NULL;
>  	if (xserver)
>  		xserver_init = load_module("xserver-launcher.so",
> @@ -2612,6 +2609,9 @@ int main(int argc, char *argv[])
>  	if (xserver_init)
>  		xserver_init(ec);
>  
> +	if (shell_init(ec) < 0)
> +		exit(EXIT_FAILURE);
> +
>  	if (wl_display_add_socket(display, socket_name)) {
>  		fprintf(stderr, "failed to add socket: %m\n");
>  		exit(EXIT_FAILURE);
> -- 
> 1.7.5.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list