X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=ada0d7c305c567c846dacd27e487b3e9f211aab6;hb=d20f84f5ded581c57df5904c6fa550dac05ad036;hp=260299b38242dfe5d7f94c72e1a6a3ab84b36c9f;hpb=895554765dcf85e577966f75d351e84774a339a4;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index 260299b3..ada0d7c3 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -297,11 +297,9 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y, if (type == SMART_FULL || type == SMART_FOCUSED) { gboolean found_foc = FALSE, stop = FALSE; ObClient *foc; - GList *list; - list = focus_order[client->desktop == DESKTOP_ALL ? - screen_desktop : client->desktop]; - foc = list ? list->data : NULL; + foc = focus_order_find_first(client->desktop == DESKTOP_ALL ? + screen_desktop : client->desktop); for (; it && !stop; it = g_list_next(it)) { ObClient *c;