rm g_messages.. ones that segfault.. :>

This commit is contained in:
Dana Jansens 2003-06-03 01:54:31 +00:00
parent 5a8c164412
commit f7b687487c

View file

@ -260,11 +260,12 @@ void client_manage(Window window)
if (self->group) { if (self->group) {
GSList *it; GSList *it;
for (it = self->group->members; it; it = it->next) for (it = self->group->members; it; it = it->next) {
if (client_focused(it->data)) { if (client_focused(it->data)) {
group_foc = TRUE; group_foc = TRUE;
break; break;
} }
}
} }
/* note the check against Type_Normal/Dialog, not client_normal(self), /* note the check against Type_Normal/Dialog, not client_normal(self),
which would also include other types. in this case we want more which would also include other types. in this case we want more
@ -1139,18 +1140,20 @@ void client_update_wmhints(Client *self)
group_remove(self->group, self); group_remove(self->group, self);
self->group = NULL; self->group = NULL;
} }
/* i can only have transients from the group if i am not transient if (hints->window_group != None) {
myself */
if (hints->window_group != None && !self->transient_for) {
self->group = group_add(hints->window_group, self); self->group = group_add(hints->window_group, self);
/* add other transients of the group that are already /* i can only have transients from the group if i am not
set up */ transient myself */
for (it = self->group->members; it; it = it->next) if (!self->transient_for) {
if (it->data != self && /* add other transients of the group that are already
((Client*)it->data)->transient_for == TRAN_GROUP) set up */
self->transients = g_slist_append(self->transients, for (it = self->group->members; it; it = it->next)
it->data); if (it->data != self &&
((Client*)it->data)->transient_for == TRAN_GROUP)
self->transients = g_slist_append(self->transients,
it->data);
}
} }
/* the WM_HINTS can contain an icon */ /* the WM_HINTS can contain an icon */