[Xcb] Close event?

Peter Harris peter.harris at hummingbird.com
Fri Aug 8 14:29:39 PDT 2008


Jean-Loup Defaisse wrote:
> I have two little problems:
> -first, is there any way to detect that the user try to close the 
> window? because it seems no event append when i close the window and i 
> really don't know how to do.
> 
> -then, if i create two windows, closing one make the program completely 
> stop. Is there a way to avoid this and let the second window opened?

Both are solved by setting WM_DELETE_WINDOW in WM_PROTOCOLS.

See sections 4.1.2.7 and 4.2.8.1 in the ICCCM:

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

Peter Harris

-- 
      Hummingbird Connectivity - A Division of Open Text
Peter Harris                    http://connectivity.hummingbird.com
Research and Development        Phone: +1 905 762 6001
peter.harris at hummingbird.com    Toll Free: 1 877 359 4866


More information about the Xcb mailing list