[PATCH weston] shell: Don't allow maximized surfaces to be moved with touch

Kristian Høgsberg hoegsberg at gmail.com
Fri May 9 13:40:33 PDT 2014


On Wed, May 07, 2014 at 02:22:23PM +0300, Ander Conselvan de Oliveira wrote:
> From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>
> 
> Moving a maximized surface with the pointer is already not possible,
> so make the behavior with touch consistent.
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=78208

Thanks, committed.

Kristian

> ---
>  desktop-shell/shell.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
> index ea7b3cd..db55ea9 100644
> --- a/desktop-shell/shell.c
> +++ b/desktop-shell/shell.c
> @@ -1453,7 +1453,7 @@ surface_touch_move(struct shell_surface *shsurf, struct weston_seat *seat)
>  	if (!shsurf)
>  		return -1;
>  
> -	if (shsurf->state.fullscreen)
> +	if (shsurf->state.fullscreen || shsurf->state.maximized)
>  		return 0;
>  
>  	move = malloc(sizeof *move);
> -- 
> 1.8.3.2
> 
> _______________________________________________
> 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