summaryrefslogtreecommitdiff
path: root/plugins/keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/keyboard')
-rw-r--r--plugins/keyboard/keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c
index 81809649..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();