summaryrefslogtreecommitdiff
path: root/openbox/place.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-14 21:07:30 +0000
committerDana Jansens <danakj@orodu.net>2007-03-14 21:07:30 +0000
commitc80b496bf407d73bea169058abfcda44effad0dd (patch)
treefca8985046322baf23147257a0b325bfa30e1d34 /openbox/place.c
parent496c769fcec42dc3092a9f128d270ff1a4f2e64b (diff)
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.
Diffstat (limited to 'openbox/place.c')
-rw-r--r--openbox/place.c6
1 files changed, 2 insertions, 4 deletions
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;