aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-15 15:16:54 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-08-27 07:36:19 (GMT)
commit1e235e3f01733e3282a76e6be8862206d1504bdf (patch)
treee605c784c9f7042299c706acfb69d8cbab447657 /src/FbTk
parent2c6647112667109b109e578ffd55ae8409c9e1af (diff)
downloadfluxbox-1e235e3f01733e3282a76e6be8862206d1504bdf.zip
fluxbox-1e235e3f01733e3282a76e6be8862206d1504bdf.tar.bz2
Grab keyboard synchronouosly to allow replays
This allows to catch if a grabbed key (combo) is actually w/o effect (because eg. the OnDesktop condition does not match) and then replay the event ungrabbed to pass it to the focused client. Just like mouse grabbing, this BEARS THE POTENTIAL TO LOCK INPUT, thus needs AS MUCH TESTING AS POSSIBLE BUG: 1137
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/KeyUtil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc
index 10bc118..46a712a 100644
--- a/src/FbTk/KeyUtil.cc
+++ b/src/FbTk/KeyUtil.cc
@@ -129,7 +129,7 @@ void KeyUtil::grabKey(unsigned int key, unsigned int mod, Window win) {
129 for (int i = 0; i < 8; i++) { 129 for (int i = 0; i < 8; i++) {
130 XGrabKey(display, key, mod | (i & 1 ? LockMask : 0) | 130 XGrabKey(display, key, mod | (i & 1 ? LockMask : 0) |
131 (i & 2 ? nummod : 0) | (i & 4 ? scrollmod : 0), 131 (i & 2 ? nummod : 0) | (i & 4 ? scrollmod : 0),
132 win, True, GrabModeAsync, GrabModeAsync); 132 win, True, GrabModeAsync, GrabModeSync);
133 } 133 }
134 134
135} 135}