diff --git a/Changelog b/Changelog index 86ecf413..50c8aeaa 100644 --- a/Changelog +++ b/Changelog @@ -13,6 +13,7 @@ - Fixed drag offset when dragging too fast with mouse - Fixed bug where last tab index position wouldn't be remembered in case user had manually reordered tabs (#154) + - Fixed crash when hosting a QQuickWidget (#150) * v1.2.1 (unreleased) - Support for resizing dock widgets when they are in overlay/popup mode (autohide/sidebar feature) diff --git a/src/private/DragController.cpp b/src/private/DragController.cpp index 3f133859..887c0a05 100644 --- a/src/private/DragController.cpp +++ b/src/private/DragController.cpp @@ -648,6 +648,10 @@ static QWidgetOrQuick *qtTopLevelForHWND(HWND hwnd) { const QList windows = qApp->topLevelWindows(); for (QWindow *window : windows) { + if (!window->isVisible()) { + continue; + } + if (hwnd == (HWND)window->winId()) { return DockRegistry::self()->topLevelForHandle(window); }