From 9b78fd7c831b3424158b9a865f7fd6418ce8aa4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 18 Jun 2012 16:39:52 -0400 Subject: [PATCH] tablet-shell: Don't use compositor->surface_list --- src/tablet-shell.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index 56512f6..e30369d 100644 --- a/src/tablet-shell.c +++ b/src/tablet-shell.c @@ -61,6 +61,8 @@ struct tablet_shell { struct wl_listener lockscreen_listener; struct weston_layer lockscreen_layer; + struct weston_layer application_layer; + struct weston_surface *home_surface; struct weston_layer homescreen_layer; @@ -157,9 +159,10 @@ tablet_shell_surface_configure(struct weston_surface *surface, tablet_shell_set_state(shell, STATE_TASK); shell->current_client->surface = surface; weston_zoom_run(surface, 0.3, 1.0, NULL, NULL); + wl_list_insert(&shell->application_layer.surface_list, + &surface->layer_link); } - wl_list_insert(&shell->compositor->surface_list, &surface->link); weston_surface_assign_output(surface); } @@ -574,6 +577,8 @@ shell_init(struct weston_compositor *compositor) weston_layer_init(&shell->homescreen_layer, &compositor->cursor_layer.link); + weston_layer_init(&shell->application_layer, + &compositor->cursor_layer.link); weston_layer_init(&shell->lockscreen_layer, &compositor->cursor_layer.link); launch_ux_daemon(shell); -- 2.7.4