Sorry, I meant the property argument, not the type argument.<br><br><div class="gmail_quote">On Fri, Dec 31, 2010 at 3:06 AM, Cinolt <span dir="ltr"><<a href="mailto:cinolt.yk@gmail.com">cinolt.yk@gmail.com</a>></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;">Hello, I'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 "WM_DELETE_WINDOW"?<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><div><div></div>
<div class="h5"><br><br><div class="gmail_quote">
On Fri, Dec 31, 2010 at 2:16 AM, Vincent Torri <span dir="ltr"><<a href="mailto:vtorri@univ-evry.fr" target="_blank">vtorri@univ-evry.fr</a>></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><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'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 "Are you sure?" message. Thanks for any help.<br>
</blockquote>
<br></div></div>
it'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>
</div></div></blockquote></div><br>