This implements the simpler version discussed a while ago; you can create and destroy leases, and you can receive events as they come and go. The X server hides leased resources from clients and refuses to mess with those while the lease is active. When the lease terminates, the X server restores whatever mode had been set if it can. -keith