From: Kristian Høgsberg Date: Mon, 18 Jun 2012 20:39:52 +0000 (-0400) Subject: tablet-shell: Don't use compositor->surface_list X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b78fd7c831b3424158b9a865f7fd6418ce8aa4d;p=profile%2Fivi%2Fweston-ivi-shell.git tablet-shell: Don't use compositor->surface_list --- 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);