Page 68 Table of Contents Index Page 70
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E





Chapter 9

Ports, Grafts, and Mirrored Sheets

9.1 Introduction

A sheet hierarchy must be attached to a display server so as to permit input and output. This
is managed by the use of ports and grafts.

9.2 Ports

A port is a logical connection to a display server. It is responsible for managing display output
and server resources, and for handling incoming input events. Typically, the programmer will
create a single port that will manage all of the windows on the display.

A port is described with a server path. A server path is a list whose first element is a keyword
that selects the kind of port. The remainder of the server path is a list of alternating keywords
and values whose interpretation is port type-specific.

=> find-port &key (server-path *default-server-path*) [Function]
Finds a port that provides a connection to the window server addressed by server-path. If no
such connection exists, a new connection will be constructed and returned.

The following server paths are currently supported:

=> :x11 &key host display-id screen-id [Server Path]
Given this server path, find-port finds a port for the X server on the given host, using the
display-id and screen-id.


Page 68 Table of Contents Index Page 70
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E