From: Dana Jansens Date: Mon, 11 Jan 2010 20:37:36 +0000 (-0500) Subject: make focus cycle target fallback work right by going to the next prev window X-Git-Tag: mikabox-3.5-7~349^2~6 X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=commitdiff_plain;h=e8200ae603f33b70824c125ba6b37bfaec7d89ea make focus cycle target fallback work right by going to the next prev window --- diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index 1652280..d7ac9f5 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -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; }