mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 00:23:08 +01:00
The wlmouse offset should be part of the client, not the server. From
Ailin Nemui.
This commit is contained in:
parent
07ac16807f
commit
4b8bb7770f
4
status.c
4
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);
|
||||
|
Loading…
Reference in New Issue
Block a user