openbox/actions/desktop.c \
openbox/actions/dockautohide.c \
openbox/actions/directionalcyclewindows.c \
- openbox/actions/directionaldesktop.c \
openbox/actions/directionaltargetwindow.c \
openbox/actions/execute.c \
openbox/actions/exit.c \
action_resize_startup();
action_decorations_startup();
action_desktop_startup();
- action_directionaldesktop_startup();
action_resizerelative_startup();
action_addremovedesktop_startup();
action_dockautohide_startup();
void action_resize_startup();
void action_decorations_startup();
void action_desktop_startup();
-void action_directionaldesktop_startup();
void action_resizerelative_startup();
void action_addremovedesktop_startup();
void action_dockautohide_startup();
gboolean wrap;
ObDirection dir;
} rel;
- }
+ };
gboolean send;
gboolean follow;
} Options;
-static gpointer setup_switch_func(ObParseInst *i, xmlDocPtr doc,
+static gpointer setup_go_func(ObParseInst *i, xmlDocPtr doc,
xmlNodePtr node);
static gpointer setup_send_func(ObParseInst *i, xmlDocPtr doc,
xmlNodePtr node);
void action_desktop_startup()
{
- actions_register("SwitchToDesktop", setup_switch_func, g_free, run_func,
+ actions_register("GoToDesktop", setup_go_func, g_free, run_func,
NULL, NULL);
actions_register("SendToDesktop", setup_send_func, g_free, run_func,
NULL, NULL);
}
-static gpointer setup_switch_func(ObParseInst *i, xmlDocPtr doc,
+static gpointer setup_go_func(ObParseInst *i, xmlDocPtr doc,
xmlNodePtr node)
{
xmlNodePtr n;
static gpointer setup_send_func(ObParseInst *i, xmlDocPtr doc,
xmlNodePtr node)
{
- Options *o = setup_switch_func(i, doc, node);
+ xmlNodePtr n;
+ Options *o;
+
+ o = setup_go_func(i, doc, node);
o->send = TRUE;
o->follow = TRUE;
d = o->abs.desktop;
break;
case RELATIVE:
- d = screen_cycle_desktop(o->abs.dir,
- o->abs.wrap,
- o->abs.linear,
+ d = screen_cycle_desktop(o->rel.dir,
+ o->rel.wrap,
+ o->rel.linear,
FALSE, TRUE, FALSE);
break;
}