1diff --git a/mainwindow.cpp b/mainwindow.cpp
2index f03a743e..70c29a45 100644
3--- a/mainwindow.cpp
4+++ b/mainwindow.cpp
5@@ -970,7 +970,7 @@ void MainWindow::showEvent(QShowEvent *e) {
6 DockWidget *MainWindow::redistributeFindDock(const QPoint &pos) {
7 QWidget *child = childAt(pos);
8 if (QTabBar *tabBar = findSelfOrParent<QTabBar *>(child)) {
9- child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1});
10+ child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}));
11 }
12 return findSelfOrParent<DockWidget *>(child);
13 }