Chapter 2: Display Functions Before your program can use a display, you must establish a connection to the X server. Once you have established a connection, you then can use the Xlib macros and functions discussed in this chapter to return information about the display. This chapter discusses how to: Open (connect to) the display Obtain information about the display, image format, and screen Free client-created data Close (disconnect from) a display The chapter concludes with a general discussion of what occurs when the connection to the X server is closed. Next: Opening the Display Christophe Tronche, ch.tronche@computer.org