[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 and in the ICCCM:


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