XGrabServer, XUngrabServer - grab the server
2. SYNTAX ▲
int XGrabServer(Display *display); int XUngrabServer(Display *display);
3. ARGUMENTS ▲
display 1i Specifies the connection to the X server.
4. DESCRIPTION ▲
The .ZN 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 .ZN XUngrabServer function restarts processing of requests and close downs on other connections. You should avoid grabbing the X server as much as possible.