# tty_update_window_offset

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L856
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-recalculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L331)
- [`resize_window`](/en/tmux/3.2a/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L61)
- [`screen_write_offset_timer`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_offset_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L83)
- [`session_set_current`](/en/tmux/3.2a/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L498)
- [`window_set_active_pane`](/en/tmux/3.2a/reference/c-function-window_set_active_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L481)

## Calls

- [`tty_update_client_offset`](/en/tmux/3.2a/reference/c-function-tty_update_client_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L862)

## Referenced declarations

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