summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHayato Nakamura <hayato.nakamura@mail.toyota-td.jp>2013-09-10 13:40:48 +0900
committerHayato Nakamura <hayato.nakamura@mail.toyota-td.jp>2013-09-10 13:49:43 +0900
commitf369d2464c74887af963fd432f12036499e1b855 (patch)
treee1fa414cc0419116e3f8fd70b5bcfbcc88d65089 /src
parentffb17d1b41868672899be638aa21dd1130ea2522 (diff)
downloadico-uxf-weston-plugin-f369d2464c74887af963fd432f12036499e1b855.tar.gz
ico-uxf-weston-plugin-f369d2464c74887af963fd432f12036499e1b855.tar.bz2
ico-uxf-weston-plugin-f369d2464c74887af963fd432f12036499e1b855.zip
Change-Id: I2a173e09e992359e489696c11ecd14ef7cfefd63 Signed-off-by: Hayato Nakamura <hayato.nakamura@mail.toyota-td.jp>
Diffstat (limited to 'src')
-rw-r--r--src/ico_window_mgr.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/ico_window_mgr.c b/src/ico_window_mgr.c
index 0e6c811..ada2f62 100644
--- a/src/ico_window_mgr.c
+++ b/src/ico_window_mgr.c
@@ -1471,9 +1471,11 @@ uifw_declare_manager(struct wl_client *client, struct wl_resource *resource, int
/*--------------------------------------------------------------------------*/
/**
- * @brief win_mgr_set_layer: set(or change) surface layer
+ * @brief uifw_set_window_layer: set layer id to surface
*
- * @param[in] usurf UIFW surface
+ * @param[in] client Weyland client
+ * @param[in] resource resource of request
+ * @param[in] surfaceid UIFW surface id
* @param[in] layer layer id
* @return none
*/
@@ -1482,8 +1484,8 @@ static void
uifw_set_window_layer(struct wl_client *client, struct wl_resource *resource,
uint32_t surfaceid, uint32_t layer)
{
- struct uifw_win_layer *el;
- struct uifw_win_layer *new_el;
+ uifw_trace("uifw_set_window_layer: Enter res=%08x surfaceid=%08x layer=%d",
+ (int)resource, surfaceid, layer);
struct uifw_win_surface *usurf = ico_window_mgr_get_usurf_client(surfaceid, client);
@@ -1496,28 +1498,7 @@ uifw_set_window_layer(struct wl_client *client, struct wl_resource *resource,
win_mgr_change_surface(usurf->surface, -1, 1);
}
-
- if (&el->link == &_ico_win_mgr->ivi_layer_list) {
- /* layer not exist, create new layer */
- uifw_trace("win_mgr_set_layer: New Layer %d", layer);
- new_el = win_mgr_create_layer(usurf, layer);
- if (! new_el) {
- uifw_trace("win_mgr_set_layer: Leave(No Memory)");
- return;
- }
- }
- else {
- uifw_trace("win_mgr_set_layer: Add surface to Layer %d", layer);
- wl_list_remove(&usurf->ivi_layer);
- wl_list_insert(&el->surface_list, &usurf->ivi_layer);
- usurf->win_layer = el;
- }
-
- /* rebild compositor surface list */
- if (usurf->visible) {
- ico_window_mgr_restack_layer(usurf, 0);
- }
- uifw_trace("win_mgr_set_layer: Leave");
+ uifw_trace("uifw_set_window_layer: Leave");
}
/*--------------------------------------------------------------------------*/