Subject: Killing a button kills FvwmButtons

From: [email-masked]
Date: Mon, 14 Dec 1998 23:39:24 -0600 (CST)

Full_Name: Chris Rankin
Version: 2.1.4
CVS_Date: 
OS: Linux 2.0.36
X_Server: XF86_SVGA
Submission from: (NULL) (209.214.16.185)

This message is FYI only: patches have been submitted to Brady Montz

I put xbiff on my button-bar using Swallow(UseOld,Respawn,NoHints). Then I
killed
xbiff, which in turn killed FvwmButtons.

This was fixed by NOT calling the original XErrorHandler routine in
myErrorHandler,
and by just returning zero instead. It appears that the original handler's
default
behaviour is to kill the application. This is not what you want if you
intend to
respawn.

On a related note: the correct return-type for an XErrorHandler is "int",
not
"XErrorHandler". Doing this means you don't have to typecast myErrorHandler
when
you call XSetErrorHandler.

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].