From 91c7e5c378b1a639c6f5383915ed68b36b7735d4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 24 Jan 2003 07:37:26 +0000 Subject: allow python to grab the keyboard. have release events go to the grabs callback. remove the modifier from teh state when a modifier key is the one being released --- otk/display.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'otk/display.hh') diff --git a/otk/display.hh b/otk/display.hh index 0879ce32..e8613a04 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -47,6 +47,9 @@ 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; @@ -102,6 +105,7 @@ 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; } -- cgit v1.2.3