summaryrefslogtreecommitdiff
path: root/plugins/keyboard
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-07-23 01:45:44 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-07-23 01:45:44 +0000
commit0e69ae2b96fb4dd7435ebe15645d1384d11a3ef7 (patch)
treefb68e08bfab17debce6c71a57df541197e296a82 /plugins/keyboard
parent845833226b7d65019d41eb3afce6fad7ae3d30a2 (diff)
* Change xml parsing to pass the parent node, rather than the first
child. * Add x,y co-ordinates on showmenu action so we can place menus on keypress.
Diffstat (limited to 'plugins/keyboard')
-rw-r--r--plugins/keyboard/keyboard.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c
index 5ffb3ef5..33f8409e 100644
--- a/plugins/keyboard/keyboard.c
+++ b/plugins/keyboard/keyboard.c
@@ -69,7 +69,7 @@ static void parse_key(xmlDocPtr doc, xmlNodePtr node, GList *keylist)
static void parse_xml(xmlDocPtr doc, xmlNodePtr node, void *d)
{
- parse_key(doc, node, NULL);
+ parse_key(doc, node->xmlChildrenNode, NULL);
}
void plugin_setup_config()
@@ -249,6 +249,11 @@ static void event(ObEvent *e, void *foo)
grabbed_key = p;
}
+ if (act->func == action_showmenu) {
+ act->data.showmenu.x = e->data.x.e->xkey.x_root;
+ act->data.showmenu.y = e->data.x.e->xkey.y_root;
+ }
+
act->data.any.c = focus_client;
act->func(&act->data);
}