summaryrefslogtreecommitdiff
path: root/otk/display.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-06 06:02:22 +0000
committerDana Jansens <danakj@orodu.net>2003-01-06 06:02:22 +0000
commitf3865bb12c2b3506e181f15f09b8429a59a618f8 (patch)
tree47cfc570cccb295b30e720a83c35e66167798892 /otk/display.hh
parentdbf077a59afa5c7f920d8cc598a26175c9dc612e (diff)
ignore num/caps/scroll lock in events
Diffstat (limited to 'otk/display.hh')
-rw-r--r--otk/display.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/otk/display.hh b/otk/display.hh
index 0ebd4140..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();