# window_update_activity

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L288
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window_update_activity/

```c
void window_update_activity(struct window *w)
```

## Parameters

- `w` (`struct window *`)

## Called by

- [`input_parse_buffer`](/en/tmux/3.7c/reference/c-function-input_parse_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1034)
- [`session_set_current`](/en/tmux/3.7c/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L494)
- [`window_create`](/en/tmux/3.7c/reference/c-function-window_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L337)

## Other function references

- [`alerts_queue`](/en/tmux/3.7c/reference/c-function-alerts_queue/) (function)

## Referenced declarations

- [`window.activity_time`](/en/tmux/3.7c/reference/c-struct-window-activity_time/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
- [`WINDOW_ACTIVITY`](/en/tmux/3.7c/reference/c-define-tmux-h-window_activity/) (constant)
