X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=plugins%2Fkeyboard%2Fkeyboard.c;h=bf670c49f89ba41807925a6c1d992d39032afc7e;hb=7886b797a36f5a035a75a19424e0b3cf7825baf8;hp=81809649848b74766b6a8ca255660f1f4b99055b;hpb=7ebc5c797f0435286f25f077e8329ec821fc5e53;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 81809649..bf670c49 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(); @@ -141,9 +143,6 @@ static void event(ObEvent *e, void *foo) if (p->action->func != NULL) { p->action->data.any.c = focus_client; - g_assert(!(p->action->func == action_move || - p->action->func == action_resize)); - if (p->action->func == action_cycle_windows) { p->action->data.cycle.final = FALSE; p->action->data.cycle.cancel = FALSE;