openbox/actions/all.h \
openbox/actions/debug.c \
openbox/actions/execute.c \
+ openbox/actions/exit.c \
+ openbox/actions/reconfigure.c \
openbox/actions/showdesktop.c \
openbox/actions/showmenu.c \
openbox/actions.c \
action_desktop_last,
NULL
},
- {
- "reconfigure",
- action_reconfigure,
- NULL
- },
{
"restart",
action_restart,
moveresize_start(c, data->any.x, data->any.y, data->any.button, corner);
}
-void action_reconfigure(union ActionData *data)
-{
- ob_reconfigure();
-}
-
void action_restart(union ActionData *data)
{
ob_restart_other(data->execute.path);
void action_exit(union ActionData *data)
{
- ob_exit(0);
}
void action_cycle_windows(union ActionData *data)
action_debug_startup();
action_showmenu_startup();
action_showdesktop_startup();
+ action_reconfigure_startup();
+ action_exit_startup();
}
void action_debug_startup();
void action_showmenu_startup();
void action_showdesktop_startup();
+void action_reconfigure_startup();
+void action_exit_startup();
#endif
--- /dev/null
+#include "openbox/actions.h"
+#include "openbox/openbox.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_exit_startup()
+{
+ actions_register("Exit",
+ NULL, NULL,
+ run_func,
+ NULL, NULL);
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func(ObActionsData *data, gpointer options)
+{
+ ob_exit(0);
+
+ return FALSE;
+}
--- /dev/null
+#include "openbox/actions.h"
+#include "openbox/openbox.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_reconfigure_startup()
+{
+ actions_register("Reconfigure",
+ NULL, NULL,
+ run_func,
+ NULL, NULL);
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func(ObActionsData *data, gpointer options)
+{
+ ob_reconfigure();
+
+ return FALSE;
+}
void action_showdesktop_startup()
{
actions_register("ShowDesktop",
- NULL,
- NULL,
+ NULL, NULL,
run_func,
NULL, NULL);
}