summaryrefslogtreecommitdiff
path: root/fullscreen-shell
diff options
context:
space:
mode:
authorArmin Krezović <krezovic.armin@gmail.com>2016-06-30 06:04:30 +0200
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-07-01 15:29:26 +0300
commitb1a48e665bc7c5b47e9194c7b391c2ccdb1f57a6 (patch)
treecc51e9a06ef8b76edf76cfdbbaa4649c7fa97bee /fullscreen-shell
parent4663aca2e21dd4af39447b110c52acfee90f3bd4 (diff)
downloadweston-b1a48e665bc7c5b47e9194c7b391c2ccdb1f57a6.tar.gz
weston-b1a48e665bc7c5b47e9194c7b391c2ccdb1f57a6.tar.bz2
weston-b1a48e665bc7c5b47e9194c7b391c2ccdb1f57a6.zip
fullscreen-shell: update for manual surface/view mapping
This is a follow up for fullscreen-shell to manually set mapped status for views/surfaces it controls v2: - Add manual mapping to fs_output_apply_pending() Signed-off-by: Armin Krezović <krezovic.armin@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'fullscreen-shell')
-rw-r--r--fullscreen-shell/fullscreen-shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fullscreen-shell/fullscreen-shell.c b/fullscreen-shell/fullscreen-shell.c
index 14892586..2ec2d021 100644
--- a/fullscreen-shell/fullscreen-shell.c
+++ b/fullscreen-shell/fullscreen-shell.c
@@ -266,6 +266,8 @@ fs_output_create(struct fullscreen_shell *shell, struct weston_output *output)
fsout->black_view = create_black_surface(shell->compositor, fsout,
output->x, output->y,
output->width, output->height);
+ fsout->black_view->surface->is_mapped = true;
+ fsout->black_view->is_mapped = true;
weston_layer_entry_insert(&shell->layer.view_list,
&fsout->black_view->layer_link);
wl_list_init(&fsout->transform.link);
@@ -588,6 +590,7 @@ fs_output_apply_pending(struct fs_output *fsout)
weston_log("no memory\n");
return;
}
+ fsout->view->is_mapped = true;
wl_signal_add(&fsout->surface->destroy_signal,
&fsout->surface_destroyed);