---
name: "XGrabServer"
section: "3x"
platform: "linux"
package: "libx11-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XGrabServer/3x"
---

# XGrabServer(3x)

grab the server

## NAME

XGrabServer, XUngrabServer - grab the server

## SYNTAX

int XGrabServer(Display \**display*);

int XUngrabServer(Display \**display*);

## ARGUMENTS

- *display*

  Specifies the connection to the X server.

## 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

XGrabButton(3X11), XGrabKey(3X11), XGrabKeyboard(3X11), XGrabPointer(3X11)\
 *Xlib - C Language X Interface*
