X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.hh;h=db9834d9d4c500569b3287da019c960d9cbb63ce;hb=4ef15148365c223b8e810611a10dc27dc5fba355;hp=28d33675a8db36e6d06066f158d4f17d0e133271;hpb=9a64438a5a53624e5f5c7c3dbb5123e246693e5e;p=chaz%2Fopenbox diff --git a/otk/display.hh b/otk/display.hh index 28d33675..db9834d9 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -9,7 +9,6 @@ extern "C" { namespace otk { class ScreenInfo; -class GCCache; class RenderControl; class Display; @@ -48,9 +47,15 @@ private: //! The value of the mask for the ScrollLock modifier unsigned int _scroll_lock_mask; + //! The key codes for the modifier keys + XModifierKeymap *_modmap; + //! 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; @@ -58,22 +63,6 @@ private: //! screen RenderControl** _rendercontrol_list; - //! A cache for re-using GCs, used by the drawing objects - /*! - @see Pen - @see Font - @see Image - @see ImageControl - @see Texture - */ - GCCache *_gccache; - - // 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 /*! @@ -84,9 +73,6 @@ public: //! Destroys the class, closes the X display ~Display(); - //! Returns the GC cache for the application - inline GCCache *gcCache() const { return _gccache; } - //! Gets information on a specific screen /*! Returns a ScreenInfo class, which contains information for a screen on the @@ -116,9 +102,15 @@ public: inline unsigned int numLockMask() const { return _num_lock_mask; } inline unsigned int scrollLockMask() const { return _scroll_lock_mask; } + const XModifierKeymap *modifierMap() const { return _modmap; } 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();