diff --git a/src/layers.cpp b/src/layers.cpp index f317bc0050..505604e659 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -360,7 +360,7 @@ void Workspace::raiseWindow(Window *window, bool nogroup) QList transients; Window *transient_parent = window; while ((transient_parent = transient_parent->transientFor())) { - transients << transient_parent; + transients.prepend(transient_parent); } for (const auto &transient_parent : std::as_const(transients)) { raiseWindow(transient_parent, true);