mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Previous foreach fixes to /FOREACH WINDOW too.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1632 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fd547c3ebe
commit
27fcabbc19
@ -517,16 +517,20 @@ static void cmd_layout(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
|||||||
static void cmd_foreach_window(const char *data)
|
static void cmd_foreach_window(const char *data)
|
||||||
{
|
{
|
||||||
WINDOW_REC *old;
|
WINDOW_REC *old;
|
||||||
GSList *tmp;
|
GSList *list;
|
||||||
|
|
||||||
old = active_win;
|
old = active_win;
|
||||||
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
|
|
||||||
WINDOW_REC *rec = tmp->data;
|
|
||||||
|
|
||||||
active_win = rec;
|
list = g_slist_copy(windows);
|
||||||
|
while (list != NULL) {
|
||||||
|
WINDOW_REC *rec = list->data;
|
||||||
|
|
||||||
|
active_win = rec;
|
||||||
signal_emit("send command", 3, data, rec->active_server,
|
signal_emit("send command", 3, data, rec->active_server,
|
||||||
rec->active);
|
rec->active);
|
||||||
|
list = g_slist_remove(list, list->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
active_win = old;
|
active_win = old;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user