XAllowEvents with a timestamp, otherwise we end up with a grab in place that we dont want
This commit is contained in:
parent
b48c0e0b47
commit
6d0b401201
1 changed files with 1 additions and 3 deletions
|
@ -87,7 +87,6 @@ static void press(ObEvent *e, void *foo)
|
||||||
if (e->data.x.e->xkey.keycode == reset_key &&
|
if (e->data.x.e->xkey.keycode == reset_key &&
|
||||||
e->data.x.e->xkey.state == reset_state) {
|
e->data.x.e->xkey.state == reset_state) {
|
||||||
reset_chains();
|
reset_chains();
|
||||||
XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
|
|
||||||
} else {
|
} else {
|
||||||
KeyBindingTree *p;
|
KeyBindingTree *p;
|
||||||
if (curpos == NULL)
|
if (curpos == NULL)
|
||||||
|
@ -104,7 +103,6 @@ static void press(ObEvent *e, void *foo)
|
||||||
grabbed = TRUE;
|
grabbed = TRUE;
|
||||||
}
|
}
|
||||||
curpos = p;
|
curpos = p;
|
||||||
XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
|
|
||||||
} else {
|
} else {
|
||||||
if (p->action->func != NULL) {
|
if (p->action->func != NULL) {
|
||||||
p->action->data.any.c = focus_client;
|
p->action->data.any.c = focus_client;
|
||||||
|
@ -115,7 +113,6 @@ static void press(ObEvent *e, void *foo)
|
||||||
p->action->func(&p->action->data);
|
p->action->func(&p->action->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
|
|
||||||
reset_chains();
|
reset_chains();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -123,6 +120,7 @@ static void press(ObEvent *e, void *foo)
|
||||||
p = p->next_sibling;
|
p = p->next_sibling;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
XAllowEvents(ob_display, AsyncKeyboard, e->data.x.e->xkey.time);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void binddef()
|
static void binddef()
|
||||||
|
|
Loading…
Reference in a new issue