Next: , Previous: , Up: Control Functions   [Contents][Index]


15.1 Grabbing the Server

Certain cases may require that a client demand exclusive access to the server, causing the processing for all other clients to be suspended. Such exclusive access is referred to as grabbing the server. CLX provides functions to grab and release exclusive access to the server. These function should be used rarely and always with extreme caution, since they have the potential to disrupt the entire window system for all clients.

Function: grab-server display
display

A display.

Disables processing of requests and close-downs on all connections other than the one on which this request arrived.

Function: ungrab-server display
display

A display.

Restarts processing of requests and close-downs on other connections.

Macro: with-server-grabbed display &body body

Grabs the display server only within the dynamic extent of the body. ungrab-server is automatically called upon exit from the body. This macro provides the most reliable way for CLX clients to grab the server.

display

A display.

body

The forms to execute while the server is grabbed.