From ebb36134cf5c10bee32f3e5a0dbc0a3f6d5a1f5e Mon Sep 17 00:00:00 2001 From: xiaojianfeng Date: Mon, 26 Sep 2022 03:30:50 +0000 Subject: [PATCH] fix floating window position bug with mouse operation Signed-off-by: xiaojianfeng --- wmserver/src/window_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmserver/src/window_controller.cpp b/wmserver/src/window_controller.cpp index 91ec6603..fb2fe7fe 100644 --- a/wmserver/src/window_controller.cpp +++ b/wmserver/src/window_controller.cpp @@ -824,7 +824,7 @@ WMError WindowController::UpdateProperty(sptr& property, Propert node->SetDragType(property->GetDragType()); ret = ResizeRect(windowId, property->GetRequestRect(), property->GetWindowSizeChangeReason()); if (node->GetWindowMode() == WindowMode::WINDOW_MODE_FLOATING && ret == WMError::WM_OK && - callingWindowId_ != 0u && !WindowHelper::IsEmptyRect(callingWindowRestoringRect_)) { + callingWindowId_ == windowId && !WindowHelper::IsEmptyRect(callingWindowRestoringRect_)) { if (property->GetWindowSizeChangeReason() != WindowSizeChangeReason::MOVE) { callingWindowId_ = 0u; callingWindowRestoringRect_ = { 0, 0, 0, 0 }; -- Gitee