+ inline int shapeEventBase() const { return _shape_event_basep; }
+ //! Returns if the display has the xinerama extension available
+ inline bool xinerama() const { return _xinerama; }
+
+ 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();
+
+ //! Ungrabs the display
+ void ungrab();
+
+
+
+ /* TEMPORARY */
+ void grabButton(unsigned int button, unsigned int modifiers,
+ Window grab_window, bool owner_events,
+ unsigned int event_mask, int pointer_mode,
+ int keyboard_mode, Window confine_to, Cursor cursor,
+ bool allow_scroll_lock) const;
+ void ungrabButton(unsigned int button, unsigned int modifiers,
+ Window grab_window) const;
+ void grabKey(unsigned int keycode, unsigned int modifiers,
+ Window grab_window, bool owner_events,
+ int pointer_mode, int keyboard_mode,
+ bool allow_scroll_lock) const;
+ void ungrabKey(unsigned int keycode, unsigned int modifiers,
+ Window grab_window) const;
+ void ungrabAllKeys(Window grab_window) const;