!14 fix floating window position bug with mouse operation

Merge pull request !14 from xiaojianfeng/beta2
This commit is contained in:
openharmony_ci
2022-09-27 03:10:41 +00:00
committed by Gitee
+1 -1
View File
@@ -824,7 +824,7 @@ WMError WindowController::UpdateProperty(sptr<WindowProperty>& 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 };