diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-03-03 08:55:56 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-03-03 08:55:56 +0000 |
commit | 4b8bb7770fc06ae61942372ff7edc38b64efb58d (patch) | |
tree | 43a06ee69b0ad2b0a0d1d68049e0fdf154a293a2 /status.c | |
parent | 07ac16807f85d7bd5e7c7570f2b11250c65b6228 (diff) | |
download | rtmux-4b8bb7770fc06ae61942372ff7edc38b64efb58d.tar.gz rtmux-4b8bb7770fc06ae61942372ff7edc38b64efb58d.tar.bz2 rtmux-4b8bb7770fc06ae61942372ff7edc38b64efb58d.zip |
The wlmouse offset should be part of the client, not the server. From
Ailin Nemui.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |