Workspace::constrainedStackingOrder supports transients on AbstractClient
This commit is contained in:
parent
2f7597e522
commit
4e6ea0808a
1 changed files with 4 additions and 3 deletions
|
@ -538,14 +538,15 @@ ToplevelList Workspace::constrainedStackingOrder()
|
||||||
for (int i = stacking.size() - 1;
|
for (int i = stacking.size() - 1;
|
||||||
i >= 0;
|
i >= 0;
|
||||||
) {
|
) {
|
||||||
Client *current = qobject_cast<Client*>(stacking[i]);
|
AbstractClient *current = qobject_cast<AbstractClient*>(stacking[i]);
|
||||||
if (!current || !current->isTransient()) {
|
if (!current || !current->isTransient()) {
|
||||||
--i;
|
--i;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int i2 = -1;
|
int i2 = -1;
|
||||||
if (current->groupTransient()) {
|
Client *ccurrent = qobject_cast<Client*>(current);
|
||||||
if (current->group()->members().count() > 0) {
|
if (ccurrent && ccurrent->groupTransient()) {
|
||||||
|
if (ccurrent->group()->members().count() > 0) {
|
||||||
// find topmost client this one is transient for
|
// find topmost client this one is transient for
|
||||||
for (i2 = stacking.size() - 1;
|
for (i2 = stacking.size() - 1;
|
||||||
i2 >= 0;
|
i2 >= 0;
|
||||||
|
|
Loading…
Reference in a new issue