Hello all, I&#39;m relatively new to programming in X. I first started learning Xlib and recently found out about XCB and decided to switch. My question is, how can I make my program react to the user closing out of a window before it happens, i.e. to display an &quot;Are you sure?&quot; message. Thanks for any help.<br>