version 1.87, 2012/01/29 09:37:02 |
version 1.88, 2012/03/03 08:55:56 |
|
|
struct session *s = c->session; |
struct session *s = c->session; |
struct winlink *wl; |
struct winlink *wl; |
|
|
x += s->wlmouse; |
x += c->wlmouse; |
RB_FOREACH(wl, winlinks, &s->windows) { |
RB_FOREACH(wl, winlinks, &s->windows) { |
if (x < wl->status_width && |
if (x < wl->status_width && |
session_select(s, wl->idx) == 0) { |
session_select(s, wl->idx) == 0) { |
|
|
wloffset++; |
wloffset++; |
|
|
/* Copy the window list. */ |
/* Copy the window list. */ |
s->wlmouse = -wloffset + wlstart; |
c->wlmouse = -wloffset + wlstart; |
screen_write_cursormove(&ctx, wloffset, 0); |
screen_write_cursormove(&ctx, wloffset, 0); |
screen_write_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1); |
screen_write_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1); |
screen_free(&window_list); |
screen_free(&window_list); |