projects
/
mikachu
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Grab key bindings with GrabModeSync, so that if they lead to a keyboard grab, then...
[mikachu/openbox.git]
/
openbox
/
keyboard.c
diff --git
a/openbox/keyboard.c
b/openbox/keyboard.c
index
c23d83e
..
c318a4c
100644
(file)
--- a/
openbox/keyboard.c
+++ b/
openbox/keyboard.c
@@
-53,13
+53,13
@@
static void grab_keys(gboolean grab)
while (p) {
if (p->key)
grab_key(p->key, p->state, RootWindow(ob_display, ob_screen),
while (p) {
if (p->key)
grab_key(p->key, p->state, RootWindow(ob_display, ob_screen),
- GrabMode
As
ync);
+ GrabMode
S
ync);
p = p->next_sibling;
}
if (curpos)
grab_key(config_keyboard_reset_keycode,
config_keyboard_reset_state,
p = p->next_sibling;
}
if (curpos)
grab_key(config_keyboard_reset_keycode,
config_keyboard_reset_state,
- RootWindow(ob_display, ob_screen), GrabMode
As
ync);
+ RootWindow(ob_display, ob_screen), GrabMode
S
ync);
}
}
}
}
@@
-263,6
+263,8
@@
void keyboard_event(ObClient *client, const XEvent *e)
}
p = p->next_sibling;
}
}
p = p->next_sibling;
}
+
+ XAllowEvents(ob_display, AsyncKeyboard, event_curtime);
}
static void node_rebind(KeyBindingTree *node)
}
static void node_rebind(KeyBindingTree *node)