<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>i3: src/xinerama.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>src/xinerama.c File Reference</h1><code>#include <stdio.h></code><br/> <code>#include <stdlib.h></code><br/> <code>#include <string.h></code><br/> <code>#include <xcb/xcb.h></code><br/> <code>#include <xcb/xinerama.h></code><br/> <code>#include "<a class="el" href="a00047_source.html">queue.h</a>"</code><br/> <code>#include "<a class="el" href="a00036_source.html">data.h</a>"</code><br/> <code>#include "<a class="el" href="a00052_source.html">util.h</a>"</code><br/> <code>#include "<a class="el" href="a00055_source.html">xinerama.h</a>"</code><br/> <code>#include "<a class="el" href="a00053_source.html">workspace.h</a>"</code><br/> <code>#include "<a class="el" href="a00044_source.html">log.h</a>"</code><br/> <code>#include "<a class="el" href="a00048_source.html">randr.h</a>"</code><br/> <div class="dynheader"> Include dependency graph for xinerama.c:</div> <div class="dynsection"> </div> <p><a href="a00080_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00026.html">Output</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a6d839fbeabf7798879b865fe1050dd11">get_screen_at</a> (int x, int y)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a6c10a3a62f737a084108860feb421d94">query_screens</a> (xcb_connection_t *conn)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a93044db4172ab2447725a2bee3065931">initialize_xinerama</a> (xcb_connection_t *conn)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">We have just established a connection to the X server and need the initial Xinerama information to setup workspaces for each screen. <a href="#a93044db4172ab2447725a2bee3065931"></a><br/></td></tr> <tr><td colspan="2"><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a59ff745efdee354cf2bc3dd370fec282">num_screens</a></td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a6d839fbeabf7798879b865fe1050dd11"></a><!-- doxytag: member="xinerama.c::get_screen_at" ref="a6d839fbeabf7798879b865fe1050dd11" args="(int x, int y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a00026.html">Output</a>* get_screen_at </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00080_source.html#l00036">36</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p> <p>References <a class="el" href="a00073_source.html#l00047">outputs</a>, <a class="el" href="a00036_source.html#l00531">xoutput::rect</a>, <a class="el" href="a00047_source.html#l00335">TAILQ_FOREACH</a>, <a class="el" href="a00036_source.html#l00097">Rect::x</a>, and <a class="el" href="a00036_source.html#l00098">Rect::y</a>.</p> <p>Referenced by <a class="el" href="a00080_source.html#l00050">query_screens()</a>.</p> </div> </div> <a class="anchor" id="a93044db4172ab2447725a2bee3065931"></a><!-- doxytag: member="xinerama.c::initialize_xinerama" ref="a93044db4172ab2447725a2bee3065931" args="(xcb_connection_t *conn)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void initialize_xinerama </td> <td>(</td> <td class="paramtype">xcb_connection_t * </td> <td class="paramname"> <em>conn</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>We have just established a connection to the X server and need the initial Xinerama information to setup workspaces for each screen. </p> <p>Definition at line <a class="el" href="a00080_source.html#l00104">104</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p> <p>References <a class="el" href="a00073_source.html#l00216">disable_randr()</a>, <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00052_source.html#l00029">FREE</a>, <a class="el" href="a00078_source.html#l00301">get_first_workspace_for_output()</a>, <a class="el" href="a00073_source.html#l00166">initialize_output()</a>, <a class="el" href="a00073_source.html#l00047">outputs</a>, <a class="el" href="a00080_source.html#l00050">query_screens()</a>, and <a class="el" href="a00047_source.html#l00335">TAILQ_FOREACH</a>.</p> <p>Referenced by <a class="el" href="a00071_source.html#l00193">main()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <a class="anchor" id="a6c10a3a62f737a084108860feb421d94"></a><!-- doxytag: member="xinerama.c::query_screens" ref="a6c10a3a62f737a084108860feb421d94" args="(xcb_connection_t *conn)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void query_screens </td> <td>(</td> <td class="paramtype">xcb_connection_t * </td> <td class="paramname"> <em>conn</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00080_source.html#l00050">50</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p> <p>References <a class="el" href="a00036_source.html#l00520">xoutput::active</a>, <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00044_source.html#l00020">ELOG</a>, <a class="el" href="a00080_source.html#l00036">get_screen_at()</a>, <a class="el" href="a00036_source.html#l00100">Rect::height</a>, <a class="el" href="a00077_source.html#l00044">min()</a>, <a class="el" href="a00036_source.html#l00516">xoutput::name</a>, <a class="el" href="a00071_source.html#l00086">num_screens</a>, <a class="el" href="a00073_source.html#l00047">outputs</a>, <a class="el" href="a00036_source.html#l00531">xoutput::rect</a>, <a class="el" href="a00077_source.html#l00074">scalloc()</a>, <a class="el" href="a00047_source.html#l00353">TAILQ_INSERT_HEAD</a>, <a class="el" href="a00047_source.html#l00363">TAILQ_INSERT_TAIL</a>, <a class="el" href="a00036_source.html#l00099">Rect::width</a>, <a class="el" href="a00036_source.html#l00097">Rect::x</a>, and <a class="el" href="a00036_source.html#l00098">Rect::y</a>.</p> <p>Referenced by <a class="el" href="a00080_source.html#l00104">initialize_xinerama()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dynsection"> </div> </p> </div> </div> <hr/><h2>Variable Documentation</h2> <a class="anchor" id="a59ff745efdee354cf2bc3dd370fec282"></a><!-- doxytag: member="xinerama.c::num_screens" ref="a59ff745efdee354cf2bc3dd370fec282" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="a00080.html#a59ff745efdee354cf2bc3dd370fec282">num_screens</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00080_source.html#l00030">30</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>