aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index 09ee20e4b86..9f3474fcd53 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2133,10 +2133,10 @@ window_list (void)
2133{ 2133{
2134 if (!CONSP (Vwindow_list)) 2134 if (!CONSP (Vwindow_list))
2135 { 2135 {
2136 Lisp_Object tail; 2136 Lisp_Object tail, frame;
2137 2137
2138 Vwindow_list = Qnil; 2138 Vwindow_list = Qnil;
2139 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail)) 2139 FOR_EACH_FRAME (tail, frame)
2140 { 2140 {
2141 Lisp_Object args[2]; 2141 Lisp_Object args[2];
2142 2142
@@ -2144,7 +2144,7 @@ window_list (void)
2144 new windows at the front of args[1], which means we 2144 new windows at the front of args[1], which means we
2145 have to reverse this list at the end. */ 2145 have to reverse this list at the end. */
2146 args[1] = Qnil; 2146 args[1] = Qnil;
2147 foreach_window (XFRAME (XCAR (tail)), add_window_to_list, &args[1]); 2147 foreach_window (XFRAME (frame), add_window_to_list, &args[1]);
2148 args[0] = Vwindow_list; 2148 args[0] = Vwindow_list;
2149 args[1] = Fnreverse (args[1]); 2149 args[1] = Fnreverse (args[1]);
2150 Vwindow_list = Fnconc (2, args); 2150 Vwindow_list = Fnconc (2, args);