From: Mikael Magnusson Date: Sun, 11 Jun 2006 10:36:31 +0000 (+0000) Subject: must assign return of g_list_insert_before to list, the start address may have changed X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=48e3f64bc0a50ebf51d339787a0c7fb09c62c9cb;p=chaz%2Fopenbox must assign return of g_list_insert_before to list, the start address may have changed --- diff --git a/openbox/focus.c b/openbox/focus.c index b81e5632..4f598ec5 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -749,7 +749,7 @@ static void to_bottom(ObClient *c, guint d) /* insert before first iconic window */ for (it = focus_order[d]; it && !((ObClient*)it->data)->iconic; it = g_list_next(it)); - g_list_insert_before(focus_order[d], it, c); + focus_order[d] = g_list_insert_before(focus_order[d], it, c); } }