more fixes for the transient tree
This commit is contained in:
parent
288e37b031
commit
1046c19fda
1 changed files with 8 additions and 9 deletions
|
@ -1179,15 +1179,14 @@ void client_update_transient_for(ObClient *self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (self->group) {
|
} else if (self->type == OB_CLIENT_TYPE_DIALOG ||
|
||||||
if (self->type == OB_CLIENT_TYPE_DIALOG ||
|
self->type == OB_CLIENT_TYPE_TOOLBAR ||
|
||||||
self->type == OB_CLIENT_TYPE_TOOLBAR ||
|
self->type == OB_CLIENT_TYPE_MENU ||
|
||||||
self->type == OB_CLIENT_TYPE_MENU ||
|
self->type == OB_CLIENT_TYPE_UTILITY)
|
||||||
self->type == OB_CLIENT_TYPE_UTILITY)
|
{
|
||||||
{
|
self->transient = TRUE;
|
||||||
self->transient = TRUE;
|
if (self->group)
|
||||||
target = OB_TRAN_GROUP;
|
target = OB_TRAN_GROUP;
|
||||||
}
|
|
||||||
} else
|
} else
|
||||||
self->transient = FALSE;
|
self->transient = FALSE;
|
||||||
|
|
||||||
|
@ -1281,7 +1280,7 @@ static void client_update_transient_tree(ObClient *self,
|
||||||
!client_is_direct_child(self, newparent))
|
!client_is_direct_child(self, newparent))
|
||||||
newparent->transients = g_slist_append(newparent->transients, self);
|
newparent->transients = g_slist_append(newparent->transients, self);
|
||||||
|
|
||||||
/* If the group changed then we need to add any old group transient
|
/* If the group changed then we need to add any new group transient
|
||||||
windows to our children. But if we're transient for the group, then
|
windows to our children. But if we're transient for the group, then
|
||||||
other group transients are not our children.
|
other group transients are not our children.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue