From a4f023cf3a085d414a03e2d074e6eaa5258e4391 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Mon, 11 Aug 2003 21:19:17 +0000 Subject: Some fixes and new bugs. Someone else can do the menus because it is clear no one gives a fuck what I think and no one else wants a window manager that doesn't suck the same balls as every other window manager. --- plugins/menu/fifo_menu.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'plugins/menu/fifo_menu.c') diff --git a/plugins/menu/fifo_menu.c b/plugins/menu/fifo_menu.c index 3443294e..cb35579e 100644 --- a/plugins/menu/fifo_menu.c +++ b/plugins/menu/fifo_menu.c @@ -1,3 +1,25 @@ +/* + * $Header$ + * + * FFIO menu plugin + * Provides a menu from a FIFO located in ~/.openbox/fifo_menu/id + * Example: + * rc3: + * + * Menu format + * + * + * + * + * bsetbg "/home/woodblock/.openbox/backgrounds/GLOVE.png" + * + * + * + * + * + * If the attribute pid="true" is in the + */ + #include #include #include @@ -94,8 +116,7 @@ void fifo_menu_handler(int fd, void *d) { if (node && !xmlStrcasecmp(node->name, (const xmlChar*) "fifo_menu")) { - if ((node = parse_find_node("item", node->xmlChildrenNode))) - parse_menu_full(doc, node, menu, FALSE); + parse_menu_full(doc, node, menu, FALSE); } fifo_menu_clean_up(menu); -- cgit v1.2.3