diff options
author | markt <markt> | 2007-02-09 18:13:01 (GMT) |
---|---|---|
committer | markt <markt> | 2007-02-09 18:13:01 (GMT) |
commit | 6fdda1a31d2417c23f5f222114d30ce6abec8b40 (patch) | |
tree | 929a0c0a5ffac232568011ef055934354f4367da /src/FbTk/KeyUtil.cc | |
parent | 93d8310c0c51fe1edcdfa5240f724ab6306ce92a (diff) | |
download | fluxbox-6fdda1a31d2417c23f5f222114d30ce6abec8b40.zip fluxbox-6fdda1a31d2417c23f5f222114d30ce6abec8b40.tar.bz2 |
added mouse bindings to the keys file
Diffstat (limited to 'src/FbTk/KeyUtil.cc')
-rw-r--r-- | src/FbTk/KeyUtil.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc index 3f413a9..6985139 100644 --- a/src/FbTk/KeyUtil.cc +++ b/src/FbTk/KeyUtil.cc | |||
@@ -138,7 +138,7 @@ void KeyUtil::grabButton(unsigned int button, unsigned int mod, Window win, | |||
138 | for (int i = 0; i < 8; i++) { | 138 | for (int i = 0; i < 8; i++) { |
139 | XGrabButton(display, button, mod | (i & 1 ? capsmod : 0) | | 139 | XGrabButton(display, button, mod | (i & 1 ? capsmod : 0) | |
140 | (i & 2 ? nummod : 0) | (i & 4 ? scrollmod : 0), | 140 | (i & 2 ? nummod : 0) | (i & 4 ? scrollmod : 0), |
141 | win, True, event_mask, GrabModeAsync, GrabModeAsync, | 141 | win, False, event_mask, GrabModeAsync, GrabModeAsync, |
142 | None, cursor); | 142 | None, cursor); |
143 | } | 143 | } |
144 | 144 | ||
@@ -180,6 +180,11 @@ void KeyUtil::ungrabKeys(Window win) { | |||
180 | XUngrabKey(display, AnyKey, AnyModifier, win); | 180 | XUngrabKey(display, AnyKey, AnyModifier, win); |
181 | } | 181 | } |
182 | 182 | ||
183 | void KeyUtil::ungrabButtons(Window win) { | ||
184 | Display * display = App::instance()->display(); | ||
185 | XUngrabButton(display, AnyButton, AnyModifier, win); | ||
186 | } | ||
187 | |||
183 | unsigned int KeyUtil::keycodeToModmask(unsigned int keycode) { | 188 | unsigned int KeyUtil::keycodeToModmask(unsigned int keycode) { |
184 | XModifierKeymap *modmap = instance().m_modmap; | 189 | XModifierKeymap *modmap = instance().m_modmap; |
185 | 190 | ||