<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Xlib - Page 14 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Xlib&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Xlib&amp;p=15">3.Next</a>
</p>

<p>The client creates a connection with the server by calling <code>XOpenDisplay</code>. It then requests the creation of a window with <code>XCreateSimpleWindow</code>. A separate call to <code>XMapWindow</code> is necessary for mapping the window, that is, for making it visible on the screen.</p>

<p>The square is drawn by calling <code>XFillRectangle</code>. This operation can only be performed after the window is created. However, performing it once may not be enough. Indeed, the content of the window is not always guaranteed to be preserved.</p><p>
<a accesskey="1" href="page.php?w=Xlib&amp;p=13">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Xlib&amp;p=15">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
