diff --git a/src/xdgshellwindow.cpp b/src/xdgshellwindow.cpp index f1a5a8b5e3..088d71619c 100644 --- a/src/xdgshellwindow.cpp +++ b/src/xdgshellwindow.cpp @@ -592,6 +592,9 @@ void XdgToplevelWindow::handleRoleDestroyed() m_shellSurface->disconnect(this); + disconnect(waylandServer(), &WaylandServer::foreignTransientChanged, + this, &XdgToplevelWindow::handleForeignTransientForChanged); + XdgSurfaceWindow::handleRoleDestroyed(); }