#include "action.h"
#include "prop.h"
#include "timer.h"
+#include "config.h"
#include "keytree.h"
#include "keyboard.h"
#include "translate.h"
grab_key(p->key, p->state, win, GrabModeAsync);
p = p->next_sibling;
}
+ if (curpos)
+ grab_key(config_keyboard_reset_keycode,
+ config_keyboard_reset_state,
+ win, GrabModeAsync);
}
}
g_assert(e->type == KeyPress);
+ if (e->xkey.keycode == config_keyboard_reset_keycode &&
+ e->xkey.state == config_keyboard_reset_state)
+ {
+ keyboard_reset_chains();
+ return;
+ }
+
if (curpos == NULL)
p = keyboard_firstnode;
else
if (act->func == action_showmenu)
{
- act->data.showmenu.x =
- e->xkey.x_root;
- act->data.showmenu.y =
- e->xkey.y_root;
+ act->data.showmenu.x = e->xkey.x_root;
+ act->data.showmenu.y = e->xkey.y_root;
}
act->data.any.c = client;