weston-ivi-shell: Fix using wrong resource of layer
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Fri, 6 Jun 2014 12:27:17 +0000 (05:27 -0700)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Tue, 17 Jun 2014 01:15:30 +0000 (10:15 +0900)
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
weston-ivi-shell/src/ivi-controller.c

index 004453e..59765cc 100755 (executable)
@@ -425,6 +425,9 @@ send_surface_add_event(struct ivisurface *ivisurf,
             if (id_layout_layer != ctrllayer->id_layer) {
                 continue;
             }
+            if (resource != ctrllayer->resource) {
+                continue;
+            }
             ivi_controller_surface_send_layer(resource, ctrllayer->resource);
         }
     }