X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Fkeyboard.c;h=30ed5adaac3e256145c509216bdb1ced071ddbe8;hb=37a9456f87b6c4efd00b273f0ca2cbd8416fc5d0;hp=f3495eb82f1b6dfc611386d1afe5820d2e28b75f;hpb=0a2aa0892473c9fc61bfedd753fbb136a3f7e864;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index f3495eb8..30ed5ada 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -7,6 +7,10 @@ #include "keyboard.h" #include +void plugin_setup_config() +{ +} + KeyBindingTree *firstnode; static KeyBindingTree *curpos; @@ -98,9 +102,9 @@ static void press(ObEvent *e, void *foo) if (!grabbed) { grab_keyboard(TRUE); grabbed = TRUE; - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } curpos = p; + XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } else { if (p->action->func != NULL) { p->action->data.any.c = focus_client; @@ -165,6 +169,11 @@ static void binddef() a = action_new(action_execute); a->data.execute.path = g_strdup("xterm"); kbind(list, a); + + list->data = "C-A-Escape"; + a = action_new(action_execute); + a->data.execute.path = g_strdup("xlock -nolock -mode puzzle"); + kbind(list, a); } void plugin_startup()