Fixed issue #179 - appearance of drop indicators then Windows option "Show window contents while dragging" is

FloatingDragPreview.cpp: moved code from moveEvent into moveFloating function to remove indirection and to simplify code
Moved code from moveEvent() function into moveFloating() to remove indirection and to simplify code
Implemented Windows drag handling with native WM_ nonclient area messages
This commit is contained in:
Uwe Kindler
2020-05-22 19:43:50 +02:00
parent 36bcbded54
commit 6b5f364864
4 changed files with 378 additions and 114 deletions

View File

@@ -297,6 +297,7 @@ void CFloatingDragPreview::moveFloating()
const QPoint moveToPos = QCursor::pos() - d->DragStartMousePosition
- QPoint(BorderSize, 0);
move(moveToPos);
d->updateDropOverlays(QCursor::pos());
}
@@ -314,14 +315,6 @@ void CFloatingDragPreview::startFloating(const QPoint &DragStartMousePos,
}
//============================================================================
void CFloatingDragPreview::moveEvent(QMoveEvent *event)
{
QWidget::moveEvent(event);
d->updateDropOverlays(QCursor::pos());
}
//============================================================================
void CFloatingDragPreview::finishDragging()
{