formatting, add an assert

This commit is contained in:
Dana Jansens 2003-09-27 17:50:28 +00:00
parent 51cc41e4db
commit 0dfff40a30

View file

@ -845,7 +845,8 @@ void client_update_transient_for(ObClient *self)
group */ group */
if (t == self->group->leader || if (t == self->group->leader ||
t == None || t == None ||
t == RootWindow(ob_display, ob_screen)) { t == RootWindow(ob_display, ob_screen))
{
/* window is a transient for its group! */ /* window is a transient for its group! */
target = OB_TRAN_GROUP; target = OB_TRAN_GROUP;
} }
@ -2814,6 +2815,8 @@ ObClient *client_search_top_transient(ObClient *self)
} else { } else {
GSList *it; GSList *it;
g_assert(self->group);
for (it = self->group->members; it; it = it->next) { for (it = self->group->members; it; it = it->next) {
ObClient *c = it->data; ObClient *c = it->data;