update wm/src/window_manager.cpp.

Signed-off-by: 鄢吉傲 <914927840@qq.com>
This commit is contained in:
鄢吉傲 2024-06-26 03:00:22 +00:00 committed by Gitee
parent 8e902c06a2
commit c8374a141b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -363,8 +363,8 @@ WMError WindowManager::RegisterWMSConnectionChangedListener(const sptr<IWMSConne
pImpl_->wmsConnectionChangedListener_ = listener;
}
auto ret = SingletonContainer::Get<WindowAdapter>().RegisterWMSConnectionChangedListener(
std::bind(&WindowManager::OnWMSConnectionChanged, this, std::placeholders::_1, std::placeholders::_2,
std::placeholders::_3));
[this]((int32_t userId, int32_t screenId, bool isConnected))
{ this->OnWMSConnectionChanged(userId, screenId, isConnected); };
if (ret != WMError::WM_OK) {
pImpl_->wmsConnectionChangedListener_ = nullptr;
}