#include "frame.h"
#include "screen.h"
#include "action.h"
-#include "dispatch.h"
#include "openbox.h"
#include <glib.h>
if ((n = parse_find_node("execute", node->xmlChildrenNode)))
act->data.execute.path = parse_string(doc, n);
} else if (act->func == action_showmenu) {
- if ((n = parse_find_node("menu", node->xmlChildrenNode))) {
- gchar *plugin;
-
+ if ((n = parse_find_node("menu", node->xmlChildrenNode)))
act->data.showmenu.name = parse_string(doc, n);
- if (parse_attr_string("plugin", n, &plugin))
- menu_open_plugin(i, act->data.showmenu.name, plugin);
- }
} else if (act->func == action_desktop) {
if ((n = parse_find_node("desktop", node->xmlChildrenNode)))
act->data.desktop.desk = parse_int(doc, n);
if (data->sendto.desk < screen_num_desktops ||
data->sendto.desk == DESKTOP_ALL) {
- client_set_desktop(c, data->sendto.desk, data->sendtodir.follow);
+ client_set_desktop(c, data->sendto.desk, data->sendto.follow);
if (data->sendto.follow)
screen_set_desktop(data->sendto.desk);
}
void action_toggle_decorations(union ActionData *data)
{
- ObClient *c = data->client.c;;
+ ObClient *c = data->client.c;
if (!c) return;