// Copyright (C) 1996 Keith Whitwell. // This file may only be copied under the terms of the GNU Library General // Public License - see the file COPYING in the lib3d distribution. #ifndef XHandlerClass #define XHandlerClass #include // Could be made into a class (as opposed to a moduleThing) allowing // errors on seperate displays to be monitored independently. class XHandler { public: static void set( Display *display ); static bool reset(); static bool unset(); private: static int handle(Display *display, XErrorEvent *event); static Display *display; static bool tripped; }; #endif