qtquick: Fix crash when hovering over titlebar

It would think we were over a drag indicator, because during an instant
the overlay window has 0x0 size but the indicators are still visible.

Fix by only showing the overlay window (visible property) when it has
the correct size
This commit is contained in:
Sergio Martins
2020-11-28 17:11:46 +00:00
parent 75db599142
commit 66f447ad3f
7 changed files with 39 additions and 12 deletions

View File

@@ -118,9 +118,9 @@ void DropIndicatorOverlayInterface::setCurrentDropLocation(DropIndicatorOverlayI
}
}
void DropIndicatorOverlayInterface::hover(QPoint globalPos)
DropIndicatorOverlayInterface::DropLocation DropIndicatorOverlayInterface::hover(QPoint globalPos)
{
hover_impl(globalPos);
return hover_impl(globalPos);
}
void DropIndicatorOverlayInterface::setHoveredFrameRect(QRect rect)