#include "keyboard.h"
#include <glib.h>
+void plugin_setup_config()
+{
+}
+
KeyBindingTree *firstnode;
static KeyBindingTree *curpos;
if (e->data.x.e->xkey.keycode == reset_key &&
e->data.x.e->xkey.state == reset_state) {
reset_chains();
- XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
} else {
KeyBindingTree *p;
if (curpos == NULL)
if (!grabbed) {
grab_keyboard(TRUE);
grabbed = TRUE;
- XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
}
curpos = p;
} else {
p->action->func(&p->action->data);
}
- XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
reset_chains();
}
break;
p = p->next_sibling;
}
}
+ XAllowEvents(ob_display, AsyncKeyboard, e->data.x.e->xkey.time);
}
static void binddef()
at call-time when then action function is used.
*/
- list->data = "C-Right";
+ list->data = "A-Right";
a = action_new(action_next_desktop);
a->data.nextprevdesktop.wrap = TRUE;
kbind(list, a);
- list->data = "C-Left";
+ list->data = "A-Left";
a = action_new(action_previous_desktop);
a->data.nextprevdesktop.wrap = TRUE;
kbind(list, a);
- list->data = "C-1";
+ list->data = "A-1";
a = action_new(action_desktop);
a->data.desktop.desk = 0;
kbind(list, a);
- list->data = "C-2";
+ list->data = "A-2";
a = action_new(action_desktop);
a->data.desktop.desk = 1;
kbind(list, a);
- list->data = "C-3";
+ list->data = "A-3";
a = action_new(action_desktop);
a->data.desktop.desk = 2;
kbind(list, a);
- list->data = "C-4";
+ list->data = "A-4";
a = action_new(action_desktop);
a->data.desktop.desk = 3;
kbind(list, a);
- list->data = "C-space";
+ list->data = "A-space";
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()