]> Dogcows Code - chaz/openbox/blobdiff - openbox/place.c
make focus_order into one long list instead of having one per desktop. this actually...
[chaz/openbox] / openbox / place.c
index 260299b38242dfe5d7f94c72e1a6a3ab84b36c9f..ada0d7c305c567c846dacd27e487b3e9f211aab6 100644 (file)
@@ -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;
This page took 0.022296 seconds and 4 git commands to generate.