]> Dogcows Code - chaz/openbox/blobdiff - plugins/keyboard/keyboard.c
show the root menu on right click
[chaz/openbox] / plugins / keyboard / keyboard.c
index ef36717294e97ca58d6d3244ad70176faa182cdc..115c1182553c3c8947b191403d7b53be269901e9 100644 (file)
@@ -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) {
This page took 0.02053 seconds and 4 git commands to generate.