X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=d59c55143a6e85435ca455c3861cee56d9489150;hb=f6ad401dabc52f9841323f93b89b2169afbdaacc;hp=7c98f7a627724141a6b70c7d02f4b7a05d6690d9;hpb=4736c257a54409bf3b0ef0d803da650c71684dee;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 7c98f7a6..d59c5514 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1,3 +1,4 @@ +#include "debug.h" #include "client.h" #include "focus.h" #include "moveresize.h" @@ -576,7 +577,6 @@ Action *action_parse(xmlDocPtr doc, xmlNodePtr node) act->func == action_desktop_up || act->func == action_desktop_down) { if ((n = parse_find_node("wrap", node->xmlChildrenNode))) { - g_message("WRAP %d", parse_bool(doc, n)); act->data.desktopdir.wrap = parse_bool(doc, n); } } else if (act->func == action_send_to_desktop_right || @@ -589,6 +589,7 @@ Action *action_parse(xmlDocPtr doc, xmlNodePtr node) act->data.sendtodir.follow = parse_bool(doc, n); } } + g_free(actname); } return act; } @@ -1105,7 +1106,7 @@ void action_toggle_decorations(union ActionData *data) if (!c) return; - c->disabled_decorations = c->disabled_decorations ? 0 : ~0; + c->decorate = !c->decorate; client_setup_decor_and_functions(c); } @@ -1121,13 +1122,12 @@ void action_moveresize(union ActionData *data) void action_restart(union ActionData *data) { - ob_restart_path = g_strdup(data->execute.path); - ob_shutdown = ob_restart = TRUE; + ob_restart_other(data->execute.path); } void action_exit(union ActionData *data) { - ob_shutdown = TRUE; + ob_exit(); } void action_showmenu(union ActionData *data)