Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c67c6057ffd14254a26624517a2352e6 > files > 146

i3-doc-3.e-3.bf1.fc14.noarch.rpm

<!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: include/handlers.h Source File</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&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;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&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>include/handlers.h</h1><a href="a00040.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * vim:ts=8:expandtab</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * i3 - an improved dynamic tiling window manager</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * © 2009-2010 Michael Stapelberg and contributors</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * See file LICENSE for license information.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> */</span>
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _HANDLERS_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _HANDLERS_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;xcb/randr.h&gt;</span>
<a name="l00015"></a>00015 
<a name="l00021"></a>00021 <span class="keywordtype">int</span> <a class="code" href="a00067.html#abcdedd21ed4dd7e762b2fb2ac49b6527" title="There was a key press.">handle_key_press</a>(<span class="keywordtype">void</span> *ignored, xcb_connection_t *conn,
<a name="l00022"></a>00022                      xcb_key_press_event_t *event);
<a name="l00023"></a>00023 
<a name="l00029"></a>00029 <span class="keywordtype">int</span> <a class="code" href="a00067.html#ade0bc204de173bdbeacb7b10b5631aec" title="When the user moves the mouse pointer onto a window, this callback gets called.">handle_enter_notify</a>(<span class="keywordtype">void</span> *ignored, xcb_connection_t *conn,
<a name="l00030"></a>00030                         xcb_enter_notify_event_t *event);
<a name="l00031"></a>00031 
<a name="l00038"></a>00038 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a23c1d18838f1993a18c1bd891a0fcd3e" title="When the user moves the mouse but does not change the active window (e.g.">handle_motion_notify</a>(<span class="keywordtype">void</span> *ignored, xcb_connection_t *conn,
<a name="l00039"></a>00039                          xcb_motion_notify_event_t *event);
<a name="l00040"></a>00040 
<a name="l00046"></a>00046 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a2ca89397c76485894e1de2fcb65ec697" title="Called when the keyboard mapping changes (for example by using Xmodmap), we need...">handle_mapping_notify</a>(<span class="keywordtype">void</span> *ignored, xcb_connection_t *conn,
<a name="l00047"></a>00047                           xcb_mapping_notify_event_t *event);
<a name="l00048"></a>00048 
<a name="l00054"></a>00054 <span class="keywordtype">int</span> <a class="code" href="a00059.html#ac97f2eddd5082f584d9370459628f503" title="Checks if the button press was on a stack window, handles focus setting and returns...">handle_button_press</a>(<span class="keywordtype">void</span> *ignored, xcb_connection_t *conn,
<a name="l00055"></a>00055                         xcb_button_press_event_t *event);
<a name="l00056"></a>00056 
<a name="l00061"></a>00061 <span class="keywordtype">int</span> <a class="code" href="a00067.html#ae301f3f0db441a1c22a39e88989a96c3" title="A new window appeared on the screen (=was mapped), so let’s manage it.">handle_map_request</a>(<span class="keywordtype">void</span> *prophs, xcb_connection_t *conn,
<a name="l00062"></a>00062                        xcb_map_request_event_t *event);
<a name="l00063"></a>00063 
<a name="l00069"></a>00069 <span class="keywordtype">int</span> <a class="code" href="a00067.html#aa17e023a1acbf56eb18628e82c8ed55e" title="Configuration notifies are only handled because we need to set up ignore for the...">handle_configure_event</a>(<span class="keywordtype">void</span> *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
<a name="l00070"></a>00070 
<a name="l00076"></a>00076 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a38db143e8cde0e72a7fe1aa1a9412c0e" title="Gets triggered upon a RandR screen change event, that is when the user changes the...">handle_screen_change</a>(<span class="keywordtype">void</span> *prophs, xcb_connection_t *conn,
<a name="l00077"></a>00077                          xcb_generic_event_t *e);
<a name="l00078"></a>00078 
<a name="l00087"></a>00087 <span class="keywordtype">int</span> <a class="code" href="a00067.html#abef279a14e8384ccf48371d6a3f6f962" title="Configure requests are received when the application wants to resize windows on their...">handle_configure_request</a>(<span class="keywordtype">void</span> *prophs, xcb_connection_t *conn,
<a name="l00088"></a>00088                              xcb_configure_request_event_t *event);
<a name="l00089"></a>00089 
<a name="l00095"></a>00095 <span class="keywordtype">int</span> <a class="code" href="a00067.html#af9fc851cafbabe50fa229f4bfb5f0d22" title="Our window decorations were unmapped.">handle_unmap_notify_event</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, xcb_unmap_notify_event_t *event);
<a name="l00096"></a>00096 
<a name="l00106"></a>00106 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a8c3b4a8b74d993af20e5078e4a20efed" title="A destroy notify event is sent when the window is not unmapped, but immediately destroyed...">handle_destroy_notify_event</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn,
<a name="l00107"></a>00107                                 xcb_destroy_notify_event_t *event);
<a name="l00108"></a>00108 
<a name="l00113"></a>00113 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a763f921cc825269f3034ac3237f911f2" title="Called when a window changes its title.">handle_windowname_change</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, uint8_t state,
<a name="l00114"></a>00114                              xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>, xcb_atom_t atom,
<a name="l00115"></a>00115                              xcb_get_property_reply_t *prop);
<a name="l00116"></a>00116 
<a name="l00129"></a>00129 <span class="keywordtype">int</span> <a class="code" href="a00067.html#ac3e59ebb6684722fada02f66582a1787" title="We handle legacy window names (titles) which are in COMPOUND_TEXT encoding.">handle_windowname_change_legacy</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn,
<a name="l00130"></a>00130                                     uint8_t state, xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>,
<a name="l00131"></a>00131                                     xcb_atom_t atom, xcb_get_property_reply_t
<a name="l00132"></a>00132                                     *prop);
<a name="l00133"></a>00133 
<a name="l00138"></a>00138 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a3fdeb5f8c0fbef80784d1d62e4653ed9" title="Store the window classes for jumping to them later.">handle_windowclass_change</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, uint8_t state,
<a name="l00139"></a>00139                               xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>, xcb_atom_t atom,
<a name="l00140"></a>00140                               xcb_get_property_reply_t *prop);
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 
<a name="l00147"></a>00147 <span class="keywordtype">int</span> <a class="code" href="a00067.html#aef74cebc820b8224d196fa6eb9c13ac4" title="Expose event means we should redraw our windows (= title bar).">handle_expose_event</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn,
<a name="l00148"></a>00148                         xcb_expose_event_t *event);
<a name="l00149"></a>00149 
<a name="l00154"></a>00154 <span class="keywordtype">int</span> <a class="code" href="a00067.html#aa3ab831816987a97999392d7b54e4aee" title="Handle client messages (EWMH).">handle_client_message</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn,
<a name="l00155"></a>00155                           xcb_client_message_event_t *event);
<a name="l00156"></a>00156 
<a name="l00161"></a>00161 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a9f7d547fc847e3dc11747b7d04077c46" title="Handles _NET_WM_WINDOW_TYPE changes.">handle_window_type</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, uint8_t state,
<a name="l00162"></a>00162                        xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>, xcb_atom_t atom,
<a name="l00163"></a>00163                        xcb_get_property_reply_t *property);
<a name="l00164"></a>00164 
<a name="l00173"></a>00173 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a37b6d4793feaffd6a4a25db3416c0d3f" title="Handles the size hints set by a window, but currently only the part necessary for...">handle_normal_hints</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, uint8_t state,
<a name="l00174"></a>00174                         xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>, xcb_atom_t name,
<a name="l00175"></a>00175                         xcb_get_property_reply_t *reply);
<a name="l00176"></a>00176 
<a name="l00181"></a>00181 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a875fb3362eee6f327b57a6033ed29a51" title="Handles the WM_HINTS property for extracting the urgency state of the window.">handle_hints</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, uint8_t state, xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>,
<a name="l00182"></a>00182                   xcb_atom_t name, xcb_get_property_reply_t *reply);
<a name="l00183"></a>00183 
<a name="l00191"></a>00191 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a770ba9d5b30d95d843fe637e2b3910eb" title="Handles the transient for hints set by a window, signalizing that this window is...">handle_transient_for</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn, uint8_t state,
<a name="l00192"></a>00192                          xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>, xcb_atom_t name,
<a name="l00193"></a>00193                          xcb_get_property_reply_t *reply);
<a name="l00194"></a>00194 
<a name="l00200"></a>00200 <span class="keywordtype">int</span> <a class="code" href="a00067.html#a3651e94bba743f088fd461a90892ff2f" title="Handles changes of the WM_CLIENT_LEADER atom which specifies if this is a toolwindow...">handle_clientleader_change</a>(<span class="keywordtype">void</span> *data, xcb_connection_t *conn,
<a name="l00201"></a>00201                                uint8_t state, xcb_window_t <a class="code" href="a00023.html#aa10861a9e5d4859d70275b462acfcd24">window</a>,
<a name="l00202"></a>00202                                xcb_atom_t name, xcb_get_property_reply_t *prop);
<a name="l00203"></a>00203 
<a name="l00204"></a>00204 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<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>