1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It is one of the source files comprising zwgc, the Zephyr WindowGram
5 * Created by: Marc Horowitz <marc@athena.mit.edu>
7 * $Id: xerror.c 2133 2008-01-21 03:11:44Z kcr $
9 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file
16 #if (!defined(lint) && !defined(SABER))
17 static const char rcsid_xerror_c[] = "$Id: xerror.c 2133 2008-01-21 03:11:44Z kcr $";
20 #include <zephyr/mit-copyright.h>
22 #ifndef X_DISPLAY_MISSING
31 xerrortrap(Display *dpy,
40 begin_xerror_trap(Display *dpy)
43 XSetErrorHandler(xerrortrap);
47 end_xerror_trap(Display *dpy)
50 XSetErrorHandler(NULL);