diff --git a/openbox/focus.c b/openbox/focus.c index e6e6bba1..6ba125ef 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -424,7 +424,7 @@ static void to_top(ObClient *c, guint d) /* insert before first iconic window */ for (it = focus_order[d]; it && !((ObClient*)it->data)->iconic; it = it->next); - g_list_insert_before(focus_order[d], it, c); + focus_order[d] = g_list_insert_before(focus_order[d], it, c); } }