mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-27 09:00:55 +00:00
update wm/src/window_manager.cpp.
Signed-off-by: 鄢吉傲 <914927840@qq.com>
This commit is contained in:
parent
8e902c06a2
commit
c8374a141b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user