summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bar.c')
-rw-r--r--src/bar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bar.c b/src/bar.c
index 16bc8e3..732b8ef 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -104,12 +104,12 @@ update_window_names (screen_info *s)
sbuf_clear (bar_buffer);
- for (w = rp_window_head; w; w = w->next)
+ for (w = rp_mapped_window_sentinel->next;
+ w != rp_mapped_window_sentinel;
+ w = w->next)
{
PRINT_DEBUG ("%d-%s\n", w->number, w->name);
- if (w->state == STATE_UNMAPPED) continue;
-
if (w == rp_current_window)
mark_start = strlen (sbuf_get (bar_buffer));