X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.hh;h=0fbf2b34bf3dfe80aaf90751c0cbe2c4b5a2f460;hb=f3865bb12c2b3506e181f15f09b8429a59a618f8;hp=7f5ab02d0b55daf96385ab430152de3e60129361;hpb=c4a1fac49da32250dc4567880b385feb7feaa908;p=chaz%2Fopenbox diff --git a/otk/display.hh b/otk/display.hh index 7f5ab02d..0fbf2b34 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -42,6 +42,12 @@ private: //! A list of all possible combinations of keyboard lock masks static unsigned int _mask_list[8]; + //! The value of the mask for the NumLock modifier + static unsigned int _numLockMask; + + //! The value of the mask for the ScrollLock modifier + static unsigned int _scrollLockMask; + //! The number of requested grabs on the display static int _grab_count; @@ -97,6 +103,9 @@ public: //! Returns if the display has the xinerama extention available inline static bool xinerama() { return _xinerama; } + inline static unsigned int numLockMask() { return _numLockMask; } + inline static unsigned int scrollLockMask() { return _scrollLockMask; } + //! Grabs the display static void grab(); @@ -113,6 +122,11 @@ public: bool allow_scroll_lock); static void ungrabButton(unsigned int button, unsigned int modifiers, Window grab_window); + static void grabKey(unsigned int keycode, unsigned int modifiers, + Window grab_window, bool owner_events, + int pointer_mode, int keyboard_mode, bool allow_scroll_lock); + static void ungrabKey(unsigned int keycode, unsigned int modifiers, + Window grab_window); }; }