X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Fkeyboard.c;h=115c1182553c3c8947b191403d7b53be269901e9;hb=8955a2b70fc3964f7f7eda6e260deefef0e34029;hp=ef36717294e97ca58d6d3244ad70176faa182cdc;hpb=49f31c07429e0f1dbc282110d207bd8a862af55b;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index ef367172..115c1182 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -116,6 +116,8 @@ static void event(ObEvent *e, void *foo) if (e->type == Event_X_KeyRelease) return; + g_assert(e->type == Event_X_KeyPress); + if (e->data.x.e->xkey.keycode == reset_key && e->data.x.e->xkey.state == reset_state) { reset_chains(); @@ -149,9 +151,7 @@ static void event(ObEvent *e, void *foo) p->action->data.cycle.cancel = FALSE; } - if (!grabbed_key || - p->action->func == action_cycle_windows) - p->action->func(&p->action->data); + p->action->func(&p->action->data); if (p->action->func == action_cycle_windows && !grabbed_key) {