# server_client_check_mouse_in_pane

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

```c
static enum key_code_mouse_location server_client_check_mouse_in_pane(struct window_pane *wp, int px, int py, u_int *sl_mpos)
```

## Parameters

- `wp` (`struct window_pane *`)
- `px` (`int`)
- `py` (`int`)
- `sl_mpos` (`u_int *`)

## Called by

- [`server_client_check_mouse`](/en/tmux/latest/reference/c-function-server-client-c-server_client_check_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L918)

## Calls

- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L611)
- [`window_pane_is_floating`](/en/tmux/latest/reference/c-function-window_pane_is_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L695)
- [`window_pane_show_scrollbar`](/en/tmux/latest/reference/c-function-window_pane_show_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L613)

## Referenced declarations

- [`window_pane.entry`](/en/tmux/latest/reference/c-struct-window_pane-entry/) (attribute)
- [`window_pane.flags`](/en/tmux/latest/reference/c-struct-window_pane-flags/) (attribute)
- [`window.flags`](/en/tmux/latest/reference/c-struct-window-flags/) (attribute)
- [`key_code_mouse_location`](/en/tmux/latest/reference/c-enum-key_code_mouse_location/) (enum)
- [`KEYC_MOUSE_LOCATION_BORDER`](/en/tmux/latest/reference/c-enum-key_code_mouse_location-keyc_mouse_location_border/) (constant)
- [`KEYC_MOUSE_LOCATION_NOWHERE`](/en/tmux/latest/reference/c-enum-key_code_mouse_location-keyc_mouse_location_nowhere/) (constant)
- [`KEYC_MOUSE_LOCATION_PANE`](/en/tmux/latest/reference/c-enum-key_code_mouse_location-keyc_mouse_location_pane/) (constant)
- [`KEYC_MOUSE_LOCATION_SCROLLBAR_DOWN`](/en/tmux/latest/reference/c-enum-key_code_mouse_location-keyc_mouse_location_scrollbar_down/) (constant)
- [`KEYC_MOUSE_LOCATION_SCROLLBAR_SLIDER`](/en/tmux/latest/reference/c-enum-key_code_mouse_location-keyc_mouse_location_scrollbar_slider/) (constant)
- [`KEYC_MOUSE_LOCATION_SCROLLBAR_UP`](/en/tmux/latest/reference/c-enum-key_code_mouse_location-keyc_mouse_location_scrollbar_up/) (constant)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`style.pad`](/en/tmux/latest/reference/c-struct-style-pad/) (attribute)
- [`PANE_SCROLLBARS_LEFT`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_left/) (constant)
- [`PANE_SCROLLBARS_RIGHT`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_right/) (constant)
- [`PANE_STATUS_BOTTOM`](/en/tmux/latest/reference/c-define-tmux-h-pane_status_bottom/) (constant)
- [`PANE_STATUS_OFF`](/en/tmux/latest/reference/c-define-tmux-h-pane_status_off/) (constant)
- [`PANE_STATUS_TOP`](/en/tmux/latest/reference/c-define-tmux-h-pane_status_top/) (constant)
- [`PANE_ZOOMED`](/en/tmux/latest/reference/c-define-tmux-h-pane_zoomed/) (constant)
- [`window.panes`](/en/tmux/latest/reference/c-struct-window-panes/) (attribute)
- [`window.sb_pos`](/en/tmux/latest/reference/c-struct-window-sb_pos/) (attribute)
- [`window_pane.sb_slider_h`](/en/tmux/latest/reference/c-struct-window_pane-sb_slider_h/) (attribute)
- [`window_pane.sb_slider_y`](/en/tmux/latest/reference/c-struct-window_pane-sb_slider_y/) (attribute)
- [`window_pane.scrollbar_style`](/en/tmux/latest/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`window_pane.sx`](/en/tmux/latest/reference/c-struct-window_pane-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/latest/reference/c-struct-window_pane-sy/) (attribute)
- [`style.width`](/en/tmux/latest/reference/c-struct-style-width/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`WINDOW_ZOOMED`](/en/tmux/latest/reference/c-define-tmux-h-window_zoomed/) (constant)
- [`window_pane.xoff`](/en/tmux/latest/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/latest/reference/c-struct-window_pane-yoff/) (attribute)
