X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.hh;h=81dd27c5dffdce3dfdb92d913795cb95b8810ad5;hb=1e47e17d08d72d181edc2bde598ad246055655ad;hp=e8613a04bf928273badc3699b8c1dc87da5f450e;hpb=91c7e5c378b1a639c6f5383915ed68b36b7735d4;p=chaz%2Fopenbox diff --git a/otk/display.hh b/otk/display.hh index e8613a04..81dd27c5 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -53,6 +53,9 @@ private: //! The number of requested grabs on the display int _grab_count; + //! When true, X errors will be ignored. Use with care. + bool _ignore_errors; + //! A list of information for all screens on the display ScreenInfo** _screeninfo_list; @@ -60,12 +63,6 @@ private: //! screen RenderControl** _rendercontrol_list; - // Handles X errors on the display - /* - Displays the error if compiled for debugging. - */ - //int xerrorHandler(::Display *d, XErrorEvent *e); - public: //! Initializes the class, opens the X display /*! @@ -109,6 +106,11 @@ public: inline ::Display* operator*() const { return _display; } + //! When true, X errors will be ignored. + inline bool ignoreErrors() const { return _ignore_errors; } + //! Set whether X errors should be ignored. Use with care. + void setIgnoreErrors(bool t); + //! Grabs the display void grab(); @@ -131,6 +133,7 @@ public: bool allow_scroll_lock) const; void ungrabKey(unsigned int keycode, unsigned int modifiers, Window grab_window) const; + void ungrabAllKeys(Window grab_window) const; }; }