[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Query about Xlib
From: Paul Vojta <vojta () Math ! Berkeley ! EDU>
Date: 2005-03-31 19:04:26
Message-ID: 20050331190426.GA25994 () math ! berkeley ! edu
[Download RAW message or body]
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@math.berkeley.edu
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic