From 4e6ea0808a54bb9820ff29d82a5903d9a43170cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 14 Sep 2015 11:05:18 +0200 Subject: [PATCH] Workspace::constrainedStackingOrder supports transients on AbstractClient --- layers.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layers.cpp b/layers.cpp index 26663593e9..6996638306 100644 --- a/layers.cpp +++ b/layers.cpp @@ -538,14 +538,15 @@ ToplevelList Workspace::constrainedStackingOrder() for (int i = stacking.size() - 1; i >= 0; ) { - Client *current = qobject_cast(stacking[i]); + AbstractClient *current = qobject_cast(stacking[i]); if (!current || !current->isTransient()) { --i; continue; } int i2 = -1; - if (current->groupTransient()) { - if (current->group()->members().count() > 0) { + Client *ccurrent = qobject_cast(current); + if (ccurrent && ccurrent->groupTransient()) { + if (ccurrent->group()->members().count() > 0) { // find topmost client this one is transient for for (i2 = stacking.size() - 1; i2 >= 0;