Hello, I&#39;m assuming that I need to call xcb_change_property on my window to change one of its properties. What should I set the type argument to, and am I correct in assuming that the data argument should be &quot;WM_DELETE_WINDOW&quot;?<br>
<br><pre><code>    xcb_void_cookie_t xcb_change_property (xcb_connection_t *c,       /* Connection to the X server */<br>                                           uint8_t          mode,     /* Property mode */<br>                                           xcb_window_t     window,   /* Window */<br>
                                           xcb_atom_t       property, /* Property to change */<br>                                           xcb_atom_t       type,     /* Type of the property */<br>                                           uint8_t          format,   /* Format of the property (8, 16, 32) */<br>
                                           uint32_t         data_len, /* Length of the data parameter */<br>                                           const void      *data);    /* Data */<br></code></pre><br><br><div class="gmail_quote">
On Fri, Dec 31, 2010 at 2:16 AM, Vincent Torri <span dir="ltr">&lt;<a href="mailto:vtorri@univ-evry.fr">vtorri@univ-evry.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hey,<div><div></div><div class="h5"><br>
<br>
On Fri, 31 Dec 2010, Cinolt wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello all, I&#39;m relatively new to programming in X. I first started learning<br>
Xlib and recently found out about XCB and decided to switch. My question is,<br>
how can I make my program react to the user closing out of a window before<br>
it happens, i.e. to display an &quot;Are you sure?&quot; message. Thanks for any help.<br>
</blockquote>
<br></div></div>
it&#39;s an ICCCM thing. Use the WM_DELETE_WINDOW atom [1]<br>
<br>
Vincent Torri<br>
<br>
[1] <a href="http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1" target="_blank">http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1</a><br>
</blockquote></div><br>