]> Dogcows Code - chaz/openbox/commitdiff
make focus cycle target fallback work right by going to the next prev window
authorDana Jansens <danakj@orodu.net>
Mon, 11 Jan 2010 20:37:36 +0000 (15:37 -0500)
committerDana Jansens <danakj@orodu.net>
Mon, 11 Jan 2010 20:37:50 +0000 (15:37 -0500)
openbox/focus_cycle_popup.c

index 165228028d4c69ca63182050d4a69395c39fc669..d7ac9f53d121b81e27fd33505ede9a6974d7e38c 100644 (file)
@@ -605,14 +605,14 @@ static ObClient* popup_revert(ObClient *target)
         if (t->client == target) {
             /* move to a previous window if possible */
             for (itt = it->prev; itt; itt = g_list_previous(itt)) {
-                ObFocusCyclePopupTarget *t2 = it->data;
+                ObFocusCyclePopupTarget *t2 = itt->data;
                 if (focus_cycle_valid(t2->client))
                     return t2->client;
             }
 
             /* otherwise move to a following window if possible */
             for (itt = it->next; itt; itt = g_list_next(itt)) {
-                ObFocusCyclePopupTarget *t2 = it->data;
+                ObFocusCyclePopupTarget *t2 = itt->data;
                 if (focus_cycle_valid(t2->client))
                     return t2->client;
             }
This page took 0.028781 seconds and 4 git commands to generate.