diff --git a/src/xdgshellwindow.cpp b/src/xdgshellwindow.cpp index 5260fd8239..16b0c90058 100644 --- a/src/xdgshellwindow.cpp +++ b/src/xdgshellwindow.cpp @@ -322,7 +322,7 @@ void XdgSurfaceWindow::installPlasmaShellSurface(PlasmaShellSurfaceInterface *sh keepInArea(workspace()->clientArea(PlacementArea, this)); } }; - connect(this, &Window::windowShown, this, moveUnderCursor, Qt::SingleShotConnection); + connect(this, &Window::readyForPaintingChanged, this, moveUnderCursor, Qt::SingleShotConnection); }; auto updateRole = [this, shellSurface] { WindowType type = WindowType::Unknown;