[PATCH] shell: Fix Bug 48906

zhiwen.wu at linux.intel.com zhiwen.wu at linux.intel.com
Mon Apr 23 11:30:43 PDT 2012


From: Alex Wu <zhiwen.wu at linux.intel.com>

Rotation and then fullscreen leads to fullscreen display rotation.
---
 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



More information about the wayland-devel mailing list