Set surface owner for watch ANR 80/199480/1
authorhyunho <hhstark.kang@samsung.com>
Tue, 12 Feb 2019 02:36:42 +0000 (11:36 +0900)
committerhyunho <hhstark.kang@samsung.com>
Tue, 12 Feb 2019 02:36:42 +0000 (11:36 +0900)
Change-Id: I7a7d673847f1ae15cea44c7dab33c1ed003356f5
Signed-off-by: hyunho <hhstark.kang@samsung.com>
screen_connector_remote_surface_evas/remote_surface_evas.cc

index 095fcb1..2f13748 100644 (file)
@@ -485,7 +485,8 @@ void RemoteSurfaceEvas::OnBufferChanged(int type, std::shared_ptr<WlBuffer> tbm,
     } else {
       unsigned int win_id = ecore_wl2_window_id_get(wlWin);
       impl_->winVisibility_map_[win_id] = GetVisibility(win_id);
-      if (impl_->parent_->GetType() == RemoteSurface::WIDGET)
+      if (impl_->parent_->GetType() == RemoteSurface::WIDGET ||
+          impl_->parent_->GetType() == RemoteSurface::WATCH)
         impl_->parent_->SetSurfaceOwner(ecore_wl2_window_surface_get(wlWin));
     }
     isAdded = true;