# server_client_set_overlay

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L90
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-server_client_set_overlay/

```c
void server_client_set_overlay(struct client *c, u_int delay, overlay_check_cb checkcb, overlay_mode_cb modecb, overlay_draw_cb drawcb, overlay_key_cb keycb, overlay_free_cb freecb, overlay_resize_cb resizecb, void *data)
```

## Parameters

- `c` (`struct client *`)
- `delay` (`u_int`)
- `checkcb` (`overlay_check_cb`)
- `modecb` (`overlay_mode_cb`)
- `drawcb` (`overlay_draw_cb`)
- `keycb` (`overlay_key_cb`)
- `freecb` (`overlay_free_cb`)
- `resizecb` (`overlay_resize_cb`)
- `data` (`void *`)

## Called by

- [`cmd_display_panes_exec`](/en/tmux/latest/reference/c-function-cmd-display-panes-c-cmd_display_panes_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L329)
- [`menu_display`](/en/tmux/latest/reference/c-function-menu_display/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L641)
- [`popup_display`](/en/tmux/latest/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L875)

## Calls

- [`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#L98)
- [`server_redraw_client`](/en/tmux/latest/reference/c-function-server_redraw_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L122)
- [`window_update_focus`](/en/tmux/latest/reference/c-function-window_update_focus/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L121)

## Other function references

- [`server_client_overlay_timer`](/en/tmux/latest/reference/c-function-server-client-c-server_client_overlay_timer/) (function)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`tty.flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`client.overlay_check`](/en/tmux/latest/reference/c-struct-client-overlay_check/) (attribute)
- [`overlay_check_cb`](/en/tmux/latest/reference/c-typedef-overlay_check_cb/) (typealias)
- [`client.overlay_data`](/en/tmux/latest/reference/c-struct-client-overlay_data/) (attribute)
- [`client.overlay_draw`](/en/tmux/latest/reference/c-struct-client-overlay_draw/) (attribute)
- [`overlay_draw_cb`](/en/tmux/latest/reference/c-typedef-overlay_draw_cb/) (typealias)
- [`client.overlay_free`](/en/tmux/latest/reference/c-struct-client-overlay_free/) (attribute)
- [`overlay_free_cb`](/en/tmux/latest/reference/c-typedef-overlay_free_cb/) (typealias)
- [`client.overlay_key`](/en/tmux/latest/reference/c-struct-client-overlay_key/) (attribute)
- [`overlay_key_cb`](/en/tmux/latest/reference/c-typedef-overlay_key_cb/) (typealias)
- [`client.overlay_mode`](/en/tmux/latest/reference/c-struct-client-overlay_mode/) (attribute)
- [`overlay_mode_cb`](/en/tmux/latest/reference/c-typedef-overlay_mode_cb/) (typealias)
- [`client.overlay_resize`](/en/tmux/latest/reference/c-struct-client-overlay_resize/) (attribute)
- [`overlay_resize_cb`](/en/tmux/latest/reference/c-typedef-overlay_resize_cb/) (typealias)
- [`client.overlay_timer`](/en/tmux/latest/reference/c-struct-client-overlay_timer/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`TTY_FREEZE`](/en/tmux/latest/reference/c-define-tmux-h-tty_freeze/) (constant)
- [`TTY_NOCURSOR`](/en/tmux/latest/reference/c-define-tmux-h-tty_nocursor/) (constant)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
