mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-20 01:13:32 -04:00
!14 fix floating window position bug with mouse operation
Merge pull request !14 from xiaojianfeng/beta2
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user