[Xcb] Handling Close Event

Vincent Torri vtorri at univ-evry.fr
Thu Dec 30 23:16:26 PST 2010


Hey,

On Fri, 31 Dec 2010, Cinolt wrote:

> Hello all, I'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 "Are you sure?" message. Thanks for any help.

it's an ICCCM thing. Use the WM_DELETE_WINDOW atom [1]

Vincent Torri

[1] http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.8.1


More information about the Xcb mailing list