diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-18 17:37:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-18 17:37:03 +0000 |
| commit | cea19c78c1d3bccb356fce21cda4a2fc85afce1b (patch) | |
| tree | 7a0d88058e4d3e550a03349d83c5d568e583f2c8 /openbox | |
| parent | 993fc6226d06f25513756251283e70054082ee8a (diff) | |
proper check to see if something was raised, the it==NULL would cause it to always return, incorrectly.
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/stacking.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c index e205d4b0..d6112469 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -112,6 +112,7 @@ void stacking_raise(ObWindow *window) if (WINDOW_IS_CLIENT(window)) { Client *client = WINDOW_AS_CLIENT(window); + /* move up the transient chain as far as possible first */ if (client->transient_for) { if (client->transient_for != TRAN_GROUP) { @@ -119,15 +120,18 @@ void stacking_raise(ObWindow *window) return; } else { GSList *it; + gboolean raised = FALSE; for (it = client->group->members; it; it = it->next) { Client *c = it->data; /* checking transient_for prevents infinate loops! */ - if (c != client && !c->transient_for) + if (c != client && !c->transient_for) { stacking_raise(it->data); + raised = TRUE; + } } - if (it == NULL) return; + if (raised) return; } } } |
