# window_update_focus

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

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

## Parameters

- `w` (`struct window *`)

## Called by

- [`server_client_clear_overlay`](/en/tmux/latest/reference/c-function-server_client_clear_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L148)
- [`server_client_set_overlay`](/en/tmux/latest/reference/c-function-server_client_set_overlay/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L121)
- [`server_client_set_session`](/en/tmux/latest/reference/c-function-server_client_set_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L413)
- [`session_set_current`](/en/tmux/latest/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L490)
- [`tty_keys_next`](/en/tmux/latest/reference/c-function-tty_keys_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1009)
- [`window_lost_pane`](/en/tmux/latest/reference/c-function-window_lost_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L851)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L494)
- [`window_pane_update_focus`](/en/tmux/latest/reference/c-function-window_pane_update_focus/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L495)

## Referenced declarations

- [`window.active`](/en/tmux/latest/reference/c-struct-window-active/) (attribute)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
