diff options
author | nicm <nicm> | 2018-08-20 20:41:58 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-08-20 20:41:58 +0000 |
commit | 98a478ceb3d4b8f6d1951b0b12891e54abee96d0 (patch) | |
tree | cbec672bea9efbcad0744153db330d69065676a4 /status.c | |
parent | 665f04695063a3e83773b7b4d1d50ce4f9fab970 (diff) | |
download | rtmux-98a478ceb3d4b8f6d1951b0b12891e54abee96d0.tar.gz rtmux-98a478ceb3d4b8f6d1951b0b12891e54abee96d0.tar.bz2 rtmux-98a478ceb3d4b8f6d1951b0b12891e54abee96d0.zip |
Move offset of window list into status struct.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -284,7 +284,7 @@ status_get_window_at(struct client *c, u_int x) const char *sep; size_t seplen; - x += c->wlmouse; + x += c->status.window_list_offset; RB_FOREACH(wl, winlinks, &s->windows) { oo = wl->window->options; @@ -506,7 +506,7 @@ draw: wloffset++; /* Copy the window list. */ - c->wlmouse = -wloffset + wlstart; + c->status.window_list_offset = -wloffset + wlstart; screen_write_cursormove(&ctx, wloffset, 0); screen_write_fast_copy(&ctx, &window_list, wlstart, 0, wlwidth, 1); screen_free(&window_list); |