-/* $OpenBSD: status.c,v 1.177 2018/08/19 16:45:03 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.178 2018/08/20 20:41:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
const char *sep;
size_t seplen;
- x += c->wlmouse;
+ x += c->status.window_list_offset;
RB_FOREACH(wl, winlinks, &s->windows) {
oo = wl->window->options;
wloffset++;
/* Copy the window list. */
- c->wlmouse = -wloffset + wlstart;
+ c->status.window_list_offset = -wloffset + wlstart;
screen_write_cursormove(&ctx, wloffset, 0);
screen_write_fast_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1);
screen_free(&window_list);
-/* $OpenBSD: tmux.h,v 1.841 2018/08/19 20:13:07 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.842 2018/08/20 20:41:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
/* Status line. */
struct status_line {
struct event timer;
+
struct screen status;
struct screen *old_status;
+
+ int window_list_offset;
};
/* Client connection. */