Re: Trouble with delete-event



On Sun, Aug 31, 2003 at 11:14:15PM +0200, Giovanni Corriga wrote:
> Il dom, 2003-08-31 alle 22:12, Havoc Pennington ha scritto:
> > On Sun, Aug 31, 2003 at 07:47:25PM +0200, Giovanni Corriga wrote:
> > > Hi
> > > 
> > > I have some problems with handling delete-event. Even if I return a
> > > false value from the callback function, the window is deleted. I suspect
> > > this behaviour is caused by the window manager (Red Hat 9's Metacity).
> > > I'm observing the same behaiour in the tutorial's helloworld.c program,
> > > too.
> > > 
> > > Has it happened to anybody else? Is there a workaround for it?
> > > 
> > 
> > To prevent deletion, return TRUE, not FALSE.
> > 
> 
> Sorry, that was a typo. I actually return TRUE, not FALSE. I also forgot
> to mention that if I run the app via gdb I get the right behaviour.
> 

It seems to work for lots of other programs... are you sure you don't
have some other mistake? Post a small, compilable test case...

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]