Query about Xlib

Paul Vojta vojta at Math.Berkeley.EDU
Thu Mar 31 11:04:26 PST 2005


On Thu, Mar 31, 2005 at 10:12:11AM -0800, Sachin Chavan wrote:
> Dear All,
> 
>    Sachin here. Am New to this list and relatively new to Xlib Programming,
>    I am doing some experiment with Xlib.
>   
>    I have created window with simple XCreateSimpleWindow() function.
>    Minimise, Maximize and Close button appears on Title bar of the window.
>    Problem is when I press Close button on title bar it shows following
>    message
>   
>    X connection to :0.0 broken (explicit kill or server shutdown).
> 
>    How to get rid of this message ??
>  
>    Thanks in advance

You need to handle the WM_DELETE_WINDOW protocol.  Google for

	WM_DELETE_WINDOW Xlib

For example:  http://www.sbin.org/doc/Xlib/chapt_12.html

--Paul Vojta, vojta at math.berkeley.edu



More information about the xorg mailing list