Whoops, yes this is a bug. Doh.
I've committed a fix to make it only redraw once when the timer is non-zero and
reset it to zero afterwards (otherwise it would keep redrawing every second
when locked).
Thanks.
On Sat, Sep 05, 2009 at 01:59:04AM +0200, Simon Nicolussi wrote:
> Hi,
>
> one of the recent changes to tmux has the unintented side-effect that
> all clients are being redrawn every second. This is visible for people
> with slow terminals and furthermore makes copying text with the mouse
> quite tricky. Here's a trivial fix:
>
> Index: server.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/tmux/server.c,v
> retrieving revision 1.28
> diff -u server.c
> --- server.c 4 Sep 2009 13:29:10 -0000 1.28
> +++ server.c 4 Sep 2009 23:31:04 -0000
> @@ -1210,7 +1210,7 @@
> }
> }
>
> - if (t > password_backoff) {
> + if (server_locked && t > password_backoff) {
> for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
> if ((c = ARRAY_ITEM(&clients, i)) != NULL)
> server_redraw_client(c);
>
> --
> Simon Nicolussi, <[email protected]>
> http://homepage.uibk.ac.at/~csag9583/