diff options
author | nicm <nicm> | 2015-06-15 10:58:01 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-06-15 10:58:01 +0000 |
commit | d96ab3401960ab4a7c9434dfda1ebdc5204873e0 (patch) | |
tree | ee534bc80a5dcb78c94945cda02823f934203c27 /input.c | |
parent | 29c29e771767b037f2929b889bb0de2b0b6ee138 (diff) |
Add window_activity format, from Thomas Adam based on a diff originally
from propos6 at gmail dot com.
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> +#include <time.h> #include "tmux.h" @@ -849,6 +850,9 @@ input_parse(struct window_pane *wp) wp->window->flags |= WINDOW_ACTIVITY; wp->window->flags &= ~WINDOW_SILENCE; + if (gettimeofday(&wp->window->activity_time, NULL) != 0) + fatal("gettimeofday failed"); + /* * Open the screen. Use NULL wp if there is a mode set as don't want to * update the tty. |