[PATCH weston 11/11] ivi-shell: update for manual surface/view mapping

Armin Krezović krezovic.armin at gmail.com
Sat Jun 18 17:15:26 UTC 2016


This is a follow up for ivi-shell to manually
set mapped status for views/surfaces it controls

Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
---
 ivi-shell/input-panel-ivi.c | 2 ++
 ivi-shell/ivi-layout.c      | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ivi-shell/input-panel-ivi.c b/ivi-shell/input-panel-ivi.c
index 581b56b..404f7ef 100644
--- a/ivi-shell/input-panel-ivi.c
+++ b/ivi-shell/input-panel-ivi.c
@@ -86,6 +86,8 @@ show_input_panel_surface(struct input_panel_surface *ipsurf)
 	                          &ipsurf->view->layer_link);
 	weston_view_geometry_dirty(ipsurf->view);
 	weston_view_update_transform(ipsurf->view);
+	ipsurf->view->is_mapped = true;
+	ipsurf->surface->is_mapped = true;
 	weston_surface_damage(ipsurf->surface);
 
 	if (ipsurf->anim)
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 9ce0ab0..c103029 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -841,6 +841,8 @@ commit_screen_list(struct ivi_layout *layout)
 							  &tmpview->layer_link);
 
 				ivisurf->surface->output = iviscrn->output;
+				ivisurf->surface->is_mapped = true;
+				tmpview->is_mapped = true;
 			}
 		}
 	}
-- 
2.9.0



More information about the wayland-devel mailing list