Workspace::raiseWindow: fix order of transients

Place transients of window being raised in correct order when moving
them within unconstrained_stacking_order list; this way we don't have to
reorder them each time we call constrainedStackingOrder() later on.
Workspace::lowerWindow() already does it correctly.
This commit is contained in:
Jarek Janik 2023-11-15 03:26:44 +01:00 committed by Vlad Zahorodnii
parent d4127d07fd
commit 6573275be6

View file

@ -360,7 +360,7 @@ void Workspace::raiseWindow(Window *window, bool nogroup)
QList<Window *> 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);