# tty_update_window_offset

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

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

## Parameters

- `w` (`struct window *`)

## Called by

- [`recalculate_size`](/en/tmux/latest/reference/c-function-recalculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L396)
- [`resize_window`](/en/tmux/latest/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L61)
- [`screen_write_offset_timer`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_offset_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L86)
- [`session_set_current`](/en/tmux/latest/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L495)
- [`window_set_active_pane`](/en/tmux/latest/reference/c-function-window_set_active_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L562)

## Calls

- [`tty_update_client_offset`](/en/tmux/latest/reference/c-function-tty_update_client_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L1024)

## Referenced declarations

- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`client.entry`](/en/tmux/latest/reference/c-struct-client-entry/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
