summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-03-03 08:55:57 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-03-03 08:55:57 +0000
commitc4a6567d1168a9e2c74534ebe286c8403c7fb54e (patch)
tree9215c10f35d9980d844cc800fb09e900127cb64b /usr.bin/tmux/status.c
parent7176e37c18e3d6009c9e0a9b6dc7c5dcde0f911e (diff)
The wlmouse offset should be part of the client, not the server. From
Ailin Nemui.
Diffstat (limited to 'usr.bin/tmux/status.c')
-rw-r--r--usr.bin/tmux/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 22b6686499c..2e70107e246 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.87 2012/01/29 09:37:02 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.88 2012/03/03 08:55:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -141,7 +141,7 @@ status_set_window_at(struct client *c, u_int x)
struct session *s = c->session;
struct winlink *wl;
- x += s->wlmouse;
+ x += c->wlmouse;
RB_FOREACH(wl, winlinks, &s->windows) {
if (x < wl->status_width &&
session_select(s, wl->idx) == 0) {
@@ -356,7 +356,7 @@ draw:
wloffset++;
/* Copy the window list. */
- s->wlmouse = -wloffset + wlstart;
+ c->wlmouse = -wloffset + wlstart;
screen_write_cursormove(&ctx, wloffset, 0);
screen_write_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1);
screen_free(&window_list);