# layout_set_previous

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L98
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-layout_set_previous/

```c
u_int layout_set_previous(struct window *w)
```

## Parameters

- `w` (`struct window *`)

## Called by

- [`cmd_select_layout_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-layout-c-cmd_select_layout_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-layout.c#L99)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`window.lastlayout`](/en/tmux/3.2a/reference/c-struct-window-lastlayout/) (attribute)
- [`layout_sets`](/en/tmux/3.2a/reference/c-variable-layout-set-c-layout_sets/) (attribute)
- [`nitems`](/en/tmux/3.2a/reference/c-define-tmux-h-nitems/) (constant)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
