diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-27 17:50:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-27 17:50:28 +0000 |
| commit | 0dfff40a30349d1d4cf164bdd4bd05a8b272d9a1 (patch) | |
| tree | 378fe042fc70a92e6bb93ce2802120b2cf1c00d8 /openbox | |
| parent | 51cc41e4db6295fbf9a3d2be6e8935d51ad61458 (diff) | |
formatting, add an assert
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index e6265e93..c60c77fb 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -829,7 +829,7 @@ void client_update_transient_for(ObClient *self) ObClient *target = NULL; if (XGetTransientForHint(ob_display, self->window, &t)) { - self->transient = TRUE; + self->transient = TRUE; if (t != self->window) { /* cant be transient to itself! */ target = g_hash_table_lookup(window_map, &t); /* if this happens then we need to check for it*/ @@ -845,14 +845,15 @@ void client_update_transient_for(ObClient *self) group */ if (t == self->group->leader || t == None || - t == RootWindow(ob_display, ob_screen)) { + t == RootWindow(ob_display, ob_screen)) + { /* window is a transient for its group! */ target = OB_TRAN_GROUP; } } } } else - self->transient = FALSE; + self->transient = FALSE; /* if anything has changed... */ if (target != self->transient_for) { @@ -2814,6 +2815,8 @@ ObClient *client_search_top_transient(ObClient *self) } else { GSList *it; + g_assert(self->group); + for (it = self->group->members; it; it = it->next) { ObClient *c = it->data; |
