# alerts_check_activity

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L221
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-alerts-c-alerts_check_activity/

```c
static int alerts_check_activity(struct window *)
```

## Parameters

- `w` (`struct window *`)

## Called by

- [`alerts_check_all`](/en/tmux/latest/reference/c-function-alerts-c-alerts_check_all/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L97)

## Calls

- [`alerts_action_applies`](/en/tmux/latest/reference/c-function-alerts-c-alerts_action_applies/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L242)
- [`alerts_set_message`](/en/tmux/latest/reference/c-function-alerts-c-alerts_set_message/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L250)
- [`notify_winlink`](/en/tmux/latest/reference/c-function-notify_winlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L244)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L228)
- [`server_status_session`](/en/tmux/latest/reference/c-function-server_status_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L240)

## Referenced declarations

- [`session.attached`](/en/tmux/latest/reference/c-struct-session-attached/) (attribute)
- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`session.flags`](/en/tmux/latest/reference/c-struct-session-flags/) (attribute)
- [`window.flags`](/en/tmux/latest/reference/c-struct-window-flags/) (attribute)
- [`winlink.flags`](/en/tmux/latest/reference/c-struct-winlink-flags/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`winlink.session`](/en/tmux/latest/reference/c-struct-winlink-session/) (attribute)
- [`SESSION_ALERTED`](/en/tmux/latest/reference/c-define-tmux-h-session_alerted/) (constant)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`WINDOW_ACTIVITY`](/en/tmux/latest/reference/c-define-tmux-h-window_activity/) (constant)
- [`WINLINK_ACTIVITY`](/en/tmux/latest/reference/c-define-tmux-h-winlink_activity/) (constant)
- [`window.winlinks`](/en/tmux/latest/reference/c-struct-window-winlinks/) (attribute)
