X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FXDisplay.h;h=a506eee9d0aa94f6beb80966a338577029815dbf;hb=ae3dc273c4b42553208d230a775731df18058a4a;hp=3b58003f5522c8df032d7341d1db832bde1b99bd;hpb=30136ab3e948318ae5171de2a0f71358dbcb9f3a;p=chaz%2Fopenbox 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;