dont count non-normal windows as parents, in the group too
This commit is contained in:
parent
a5aa1af32c
commit
2050e99a5f
1 changed files with 15 additions and 4 deletions
|
@ -2376,10 +2376,21 @@ ObClient *client_search_focus_tree_full(ObClient *self)
|
||||||
|
|
||||||
gboolean client_has_parent(ObClient *self)
|
gboolean client_has_parent(ObClient *self)
|
||||||
{
|
{
|
||||||
return (self->transient_for &&
|
if (self->transient_for) {
|
||||||
((self->transient_for != OB_TRAN_GROUP &&
|
if (self->transient_for != OB_TRAN_GROUP) {
|
||||||
client_normal(self->transient_for)) ||
|
if (client_normal(self->transient_for))
|
||||||
(self->group && self->group->members->next)));
|
return TRUE;
|
||||||
|
}
|
||||||
|
else if (self->group) {
|
||||||
|
GSList *it;
|
||||||
|
|
||||||
|
for (it = self->group->members; it; it = g_slist_next(it)) {
|
||||||
|
if (it->data != self && client_normal(it->data))
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ObStackingLayer calc_layer(ObClient *self)
|
static ObStackingLayer calc_layer(ObClient *self)
|
||||||
|
|
Loading…
Reference in a new issue