aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-08-20 23:02:38 +0100
committerThomas Adam <thomas@xteddy.org>2018-08-20 23:02:38 +0100
commitf36d2ecb07d89887d02c0f5a885a71189cda5729 (patch)
treef24d0a60dfbab0abcb68e685ed098756919197eb
parent9f39470b382481f9ec0d9eb17d196a753ecf8e33 (diff)
parent98a478ceb3d4b8f6d1951b0b12891e54abee96d0 (diff)
downloadrtmux-f36d2ecb07d89887d02c0f5a885a71189cda5729.tar.gz
rtmux-f36d2ecb07d89887d02c0f5a885a71189cda5729.tar.bz2
rtmux-f36d2ecb07d89887d02c0f5a885a71189cda5729.zip
Merge branch 'obsd-master'
-rw-r--r--status.c4
-rw-r--r--tmux.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/status.c b/status.c
index 17bc113b..82c87efb 100644
--- a/status.c
+++ b/status.c
@@ -284,7 +284,7 @@ status_get_window_at(struct client *c, u_int x)
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;
@@ -506,7 +506,7 @@ draw:
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);
diff --git a/tmux.h b/tmux.h
index 3eb4c174..f075215c 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1304,8 +1304,11 @@ struct cmd_entry {
/* Status line. */
struct status_line {
struct event timer;
+
struct screen status;
struct screen *old_status;
+
+ int window_list_offset;
};
/* Client connection. */