Skip to content

Commit b77cc03

Browse files
committed
Fix wrong position of overlay at first drag
1 parent a1393d5 commit b77cc03

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DockManager.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,12 @@ CDockManager::CDockManager(QWidget *parent) :
507507
CDockContainerWidget(this, parent),
508508
d(new DockManagerPrivate(this))
509509
{
510+
#ifdef USE_NATIVE_WIDGETS
511+
// Force the Dock Manager to be native in order to fix wrong position of overlay
512+
// the first time a dock container is dragged
513+
winId();
514+
#endif
515+
510516
createRootSplitter();
511517
createSideTabBarWidgets();
512518
QMainWindow* MainWindow = qobject_cast<QMainWindow*>(parent);

0 commit comments

Comments
 (0)