diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-05 19:27:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-05 19:27:31 +0000 |
| commit | 8a99fedecd593b7be4b01c053c0d246785ea8b80 (patch) | |
| tree | 3952e6ba6997f23807795fc41eedaaa721d286de /openbox | |
| parent | 68a9a4c4fc2a8d0afd4d2bfc2f207165a209f79f (diff) | |
prepend is faster
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index 741d74de..9327cbfd 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1266,7 +1266,7 @@ static void client_update_transient_tree(ObClient *self, c = it->data; if (c != self && (!c->transient_for || c->transient_for != OB_TRAN_GROUP)) - c->transients = g_slist_append(c->transients, self); + c->transients = g_slist_prepend(c->transients, self); } } /* If we are now transient for a single window which we weren't before, @@ -1279,7 +1279,7 @@ static void client_update_transient_tree(ObClient *self, newparent != oldparent && /* don't make ourself its child if it is already our child */ !client_is_direct_child(self, newparent)) - newparent->transients = g_slist_append(newparent->transients, self); + newparent->transients = g_slist_prepend(newparent->transients, self); /* If the group changed then we need to add any new group transient windows to our children. But if we're transient for the group, then @@ -1298,7 +1298,7 @@ static void client_update_transient_tree(ObClient *self, /* Don't make it our child if it is already our parent */ !client_is_direct_child(c, self)) { - self->transients = g_slist_append(self->transients, c); + self->transients = g_slist_prepend(self->transients, c); } } } |
