Check window visibility when sends unobscured event to watch 21/185121/1
authorhyunho <hhstark.kang@samsung.com>
Fri, 20 Jul 2018 05:44:08 +0000 (14:44 +0900)
committerhyunho <hhstark.kang@samsung.com>
Thu, 26 Jul 2018 06:28:05 +0000 (15:28 +0900)
Change-Id: I19b468859d9bbccee96fa06916c8b5cabe9ee3fe
Signed-off-by: hyunho <hhstark.kang@samsung.com>
screen_connector_remote_surface_evas/remote_surface_evas.cc

index 56edaaaf57859aa0bdce037a94bebd80191fe23b..4cd5f5fbe5409bbcd828a787227673786bf315a5 100644 (file)
@@ -394,7 +394,14 @@ void RemoteSurfaceEvas::Impl::OnMove(const EvasObject& obj, void *eventInfo) {
     return;
   }
 
-  if (parent_->IsVisibleArea()) {
+  Ecore_Wl2_Window *window = NULL;
+  Ecore_Evas *ee;
+  ee = ecore_evas_ecore_evas_get(
+    evas_object_evas_get(viewer_win_->GetRaw()));
+  window = ecore_evas_wayland2_window_get(ee);
+
+  unsigned int win_id = ecore_wl2_window_id_get(window);
+  if (parent_->IsVisibleArea() && winVisibility_map_[win_id] == UNOBSCURED) {
     parent_->SendVisibility(true);
     visibility_ = RemoteSurfaceEvas::UNOBSCURED;
   } else {