[PATCH 01/12] shell.c: Set dirty for visible views on destroyed output

Xiong Zhang xiong.y.zhang at intel.com
Fri Mar 7 00:27:19 PST 2014


The geometry for visible views will keep unchanged,
weston_view_set_position() doesn't mark these views
as dirty. So there is no chance for them to reassign output, then
these views will disappear.

Signed-off-by: Xiong Zhang <xiong.y.zhang at intel.com>
---
 desktop-shell/shell.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index fd9ead0..bee1b0b 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5556,9 +5556,11 @@ shell_reposition_view_on_output_destroy(struct weston_view *view)
 
 		x = first_output->x + first_output->width / 4;
 		y = first_output->y + first_output->height / 4;
-	}
 
-	weston_view_set_position(view, x, y);
+		weston_view_set_position(view, x, y);
+	} else
+		weston_view_geometry_dirty(view);
+
 
 	shsurf = get_shell_surface(view->surface);
 
-- 
1.8.3.2



More information about the wayland-devel mailing list