[PATCH 1/3] shell: use transient flags for activate or not new surfaces

Kristian Høgsberg hoegsberg at gmail.com
Fri May 25 20:04:35 PDT 2012


On Wed, May 23, 2012 at 10:06:26PM +0300, Tiago Vignatti wrote:
> Inactive surfaces doesn't set keyboard focus, so it can be used for tooltips,
> toolbars and some other type of windows.

All committed.
Kristian

> This requires protocol side changes.
> 
> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
> ---
>  src/shell.c |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/src/shell.c b/src/shell.c
> index 9658976..b37de80 100644
> --- a/src/shell.c
> +++ b/src/shell.c
> @@ -2133,8 +2133,11 @@ map(struct desktop_shell *shell, struct weston_surface *surface,
>  	}
>  
>  	switch (surface_type) {
> -	case SHELL_SURFACE_TOPLEVEL:
>  	case SHELL_SURFACE_TRANSIENT:
> +		if (shsurf->transient.flags ==
> +				WL_SHELL_SURFACE_TRANSIENT_INACTIVE)
> +			break;
> +	case SHELL_SURFACE_TOPLEVEL:
>  	case SHELL_SURFACE_FULLSCREEN:
>  	case SHELL_SURFACE_MAXIMIZED:
>  		if (!shell->locked)
> -- 
> 1.7.9.5
> 
> _______________________________________________
> 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