X-grab-server -- Grab the X server.
X-ungrab-server -- Ungrab the X server.
X-server-grabs -- Return the number of nested server grabs.