[PATCH] shell: Fix Bug 48906

Kristian Hoegsberg hoegsberg at gmail.com
Wed Apr 25 08:27:55 PDT 2012


On Tue, Apr 24, 2012 at 02:30:43AM +0800, zhiwen.wu at linux.intel.com wrote:
> From: Alex Wu <zhiwen.wu at linux.intel.com>
> 
> Rotation and then fullscreen leads to fullscreen display rotation.

That's looks like the right approach.  Should we restore the rotation
when we come back from fullscreen?

Kristian

> ---
>  src/shell.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/src/shell.c b/src/shell.c
> index fd66462..1a206af 100644
> --- a/src/shell.c
> +++ b/src/shell.c
> @@ -925,6 +925,12 @@ shell_surface_set_fullscreen(struct wl_client *client,
>  	if (weston_surface_is_mapped(es))
>  		shsurf->force_configure = 1;
>  
> +	if (!wl_list_empty(&shsurf->rotation.transform.link)) {
> +		wl_list_remove(&shsurf->rotation.transform.link);
> +		wl_list_init(&shsurf->rotation.transform.link);
> +		shsurf->surface->geometry.dirty = 1;
> +	}
> +
>  	wl_shell_surface_send_configure(&shsurf->resource, 0,
>  					shsurf->output->current->width,
>  					shsurf->output->current->height);
> -- 
> 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