summaryrefslogtreecommitdiff
path: root/plugins/keyboard/keyboard.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-05 00:10:47 +0000
committerDana Jansens <danakj@orodu.net>2003-04-05 00:10:47 +0000
commit98c0c676dd5cc45a92bb9c90902de7f4c7d16528 (patch)
treed79919ff615bbdf4ec4c732a3f5c6dd224031366 /plugins/keyboard/keyboard.c
parentd77ac21a62d4e57dd39de6a707ca1d278cbb1e0a (diff)
initialize all vars.
change warnings to messages
Diffstat (limited to 'plugins/keyboard/keyboard.c')
-rw-r--r--plugins/keyboard/keyboard.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c
index add2b473..b0529e0a 100644
--- a/plugins/keyboard/keyboard.c
+++ b/plugins/keyboard/keyboard.c
@@ -16,7 +16,7 @@ void plugin_setup_config()
parse_reg_section("keyboard", keyparse);
}
-KeyBindingTree *firstnode;
+KeyBindingTree *firstnode = NULL;
static KeyBindingTree *curpos;
static guint reset_key, reset_state;
@@ -58,12 +58,12 @@ gboolean kbind(GList *keylist, Action *action)
return FALSE;
if ((t = tree_find(tree, &conflict)) != NULL) {
/* already bound to something */
- g_warning("keychain is already bound");
+ g_message("keychain is already bound");
tree_destroy(tree);
return FALSE;
}
if (conflict) {
- g_warning("conflict with binding");
+ g_message("conflict with binding");
tree_destroy(tree);
return FALSE;
}
@@ -130,6 +130,9 @@ static void press(ObEvent *e, void *foo)
void plugin_startup()
{
+ curpos = NULL;
+ grabbed = FALSE;
+
dispatch_register(Event_X_KeyPress, (EventHandler)press, NULL);
translate_key("C-g", &reset_state, &reset_key);