From c80b496bf407d73bea169058abfcda44effad0dd Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 14 Mar 2007 21:07:30 +0000 Subject: make focus_order into one long list instead of having one per desktop. this actually fixes bugs with omnipresent windows and adding desktops. it is just overall a little nicer i think. also this is not tested. sorry if it breaks everything. --- openbox/place.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'openbox/place.c') 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; -- cgit v1.2.3