aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-03-07 13:35:03 +0000
committerTiago Cunha <tcunha@gmx.com>2012-03-07 13:35:03 +0000
commit9d79a56402850ac35c57e35fe39990d84e1fd5fa (patch)
tree0846441b5a0760ad62ff50f0844312ffb6c1d754 /status.c
parente4f1fbd0085f30be0945ff3c8220184b0b473906 (diff)
downloadrtmux-9d79a56402850ac35c57e35fe39990d84e1fd5fa.tar.gz
rtmux-9d79a56402850ac35c57e35fe39990d84e1fd5fa.tar.bz2
rtmux-9d79a56402850ac35c57e35fe39990d84e1fd5fa.zip
Sync OpenBSD patchset 1036:
The wlmouse offset should be part of the client, not the server. From Ailin Nemui.
Diffstat (limited to 'status.c')
-rw-r--r--status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/status.c b/status.c
index 4df6745d..ab23c23b 100644
--- a/status.c
+++ b/status.c
@@ -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);