diff options
author | hyunho <hhstark.kang@samsung.com> | 2018-09-19 17:30:36 +0900 |
---|---|---|
committer | hyunho <hhstark.kang@samsung.com> | 2018-09-19 17:30:36 +0900 |
commit | e1bf7c367957e5a4e5885c0aedae88ed3bbf62e4 (patch) | |
tree | 9340bb36994a94b4bcb8bc9b5c4337412bda3dd0 | |
parent | c021e4b1ee83107acae0c2431305f5929aff6297 (diff) | |
download | screen-connector-e1bf7c367957e5a4e5885c0aedae88ed3bbf62e4.tar.gz screen-connector-e1bf7c367957e5a4e5885c0aedae88ed3bbf62e4.tar.bz2 screen-connector-e1bf7c367957e5a4e5885c0aedae88ed3bbf62e4.zip |
Fix do not send unobscured visibility bug
When object is moved it should be check viewer's visiblity.
not it's last auto visibility
Change-Id: I1efa6e227eb90b6624ccf80aa5a3869f33f269dd
Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rw-r--r-- | screen_connector_remote_surface/remote_surface.cc | 2 | ||||
-rw-r--r-- | screen_connector_remote_surface_evas/remote_surface_evas.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/screen_connector_remote_surface/remote_surface.cc b/screen_connector_remote_surface/remote_surface.cc index 65804ca..7fd2bbd 100644 --- a/screen_connector_remote_surface/remote_surface.cc +++ b/screen_connector_remote_surface/remote_surface.cc @@ -171,7 +171,7 @@ void RemoteSurface::SendVisibility(bool visible) { GetType() == WATCH) { if (!visible) SendTouchCancel(); - LOGI("normal resume"); + LOGI("normal resume %d, %s", visible, impl_->inst_id_.c_str()); if (visible) { impl_->surface_->TransferVisibility(true); } else { diff --git a/screen_connector_remote_surface_evas/remote_surface_evas.cc b/screen_connector_remote_surface_evas/remote_surface_evas.cc index 4cd5f5f..b86d960 100644 --- a/screen_connector_remote_surface_evas/remote_surface_evas.cc +++ b/screen_connector_remote_surface_evas/remote_surface_evas.cc @@ -401,7 +401,7 @@ void RemoteSurfaceEvas::Impl::OnMove(const EvasObject& obj, void *eventInfo) { 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) { + if (parent_->IsVisibleArea() && !parent_->win_ctx_->IsFullyObscured(win_id)) { parent_->SendVisibility(true); visibility_ = RemoteSurfaceEvas::UNOBSCURED; } else { |