From ae3dc273c4b42553208d230a775731df18058a4a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 16 May 2002 22:35:59 +0000 Subject: new i18n class using overloaded operator() instead of getMessage() --- src/XDisplay.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/XDisplay.h') diff --git a/src/XDisplay.h b/src/XDisplay.h index 3b58003f..a506eee9 100644 --- a/src/XDisplay.h +++ b/src/XDisplay.h @@ -41,8 +41,11 @@ private: typedef std::vector XScreenList; XScreenList _screens; - + + // X error handling static int XErrorHandler(Display *d, XErrorEvent *e); + static std::string _app_name; + static Window _last_bad_window; // no copying!! XDisplay(const XDisplay &); @@ -52,7 +55,7 @@ protected: virtual void process_event(XEvent *) = 0; public: - XDisplay(const char *dpyname = 0); + XDisplay(const std::string &application_name, const char *dpyname = 0); virtual ~XDisplay(); XScreen *screen(unsigned int s) const; -- cgit v1.2.3