XGrabServer(3) XLIB FUNCTIONS XGrabServer(3)

# [NAME](#NAME)

XGrabServer, XUngrabServer - grab the server

# [SYNTAX](#SYNTAX)

int XGrabServer(Display \**display*);

int XUngrabServer(Display \**display*);

# [ARGUMENTS](#ARGUMENTS)

[*display*](#display)

Specifies the connection to the X server.

# [DESCRIPTION](#DESCRIPTION)

The **XGrabServer** function disables processing of requests and close downs on all other connections than the one this request arrived on. You should not grab the X server any more than is absolutely necessary.

The **XUngrabServer** function restarts processing of requests and close downs on other connections. You should avoid grabbing the X server as much as possible.

# [SEE ALSO](#SEE_ALSO)

[**XGrabButton**(3)](/man/os/libx11/XGrabButton.3), [**XGrabKey**(3)](/man/os/libx11/XGrabKey.3), [**XGrabKeyboard**(3)](/man/os/libx11/XGrabKeyboard.3), [**XGrabPointer**(3)](/man/os/libx11/XGrabPointer.3)  
*Xlib - C Language X Interface*

libX11 1.8.14 X Version 11

---

Document: XGrabServer(3) from libx11 1.8.14-r3 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libx11.git
