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

@@ -53,7 +53,7 @@ public:
Frame *hoveredFrame() const { return m_hoveredFrame; }
void setCurrentDropLocation(DropIndicatorOverlayInterface::DropLocation location);
void hover(QPoint globalPos);
KDDockWidgets::DropIndicatorOverlayInterface::DropLocation hover(QPoint globalPos);
/// @brief returns the position of the specified drop location
/// The return is in global coordinates