summaryrefslogtreecommitdiff
path: root/openbox/actions/layer.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2009-09-19 15:57:20 +0200
committerMikael Magnusson <mikachu@gmail.com>2009-09-19 15:57:20 +0200
commitb89cc5859068fd5543dc9e7da3f469fb0c0a7a1c (patch)
treeb4c9bdcba493142a9fb0c44341ad16173bb49f7a /openbox/actions/layer.c
parent308478e4a5f4dc76d69395dda8a9bc42cb69eec4 (diff)
Add all the action names used in 3.4 so configs don't break
Diffstat (limited to 'openbox/actions/layer.c')
-rw-r--r--openbox/actions/layer.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/openbox/actions/layer.c b/openbox/actions/layer.c
index bbfda572..1d522bbc 100644
--- a/openbox/actions/layer.c
+++ b/openbox/actions/layer.c
@@ -10,6 +10,10 @@ static gpointer setup_func_top(xmlNodePtr node);
static gpointer setup_func_bottom(xmlNodePtr node);
static gpointer setup_func_send(xmlNodePtr node);
static gboolean run_func(ObActionsData *data, gpointer options);
+/* 3.4-compatibility */
+static gpointer setup_sendtop_func(xmlNodePtr node);
+static gpointer setup_sendbottom_func(xmlNodePtr node);
+static gpointer setup_sendnormal_func(xmlNodePtr node);
void action_layer_startup(void)
{
@@ -19,6 +23,13 @@ void action_layer_startup(void)
run_func, NULL, NULL);
actions_register("SendToLayer", setup_func_send, g_free,
run_func, NULL, NULL);
+ /* 3.4-compatibility */
+ actions_register("SendToTopLayer", setup_sendtop_func, g_free,
+ run_func, NULL, NULL);
+ actions_register("SendToBottomLayer", setup_sendbottom_func, g_free,
+ run_func, NULL, NULL);
+ actions_register("SendToNormalLayer", setup_sendnormal_func, g_free,
+ run_func, NULL, NULL);
}
static gpointer setup_func_top(xmlNodePtr node)
@@ -87,3 +98,29 @@ static gboolean run_func(ObActionsData *data, gpointer options)
return FALSE;
}
+
+/* 3.4-compatibility */
+static gpointer setup_sendtop_func(xmlNodePtr node)
+{
+ Options *o = g_new0(Options, 1);
+ o->layer = 1;
+ o->toggle = FALSE;
+ return o;
+}
+
+static gpointer setup_sendbottom_func(xmlNodePtr node)
+{
+ Options *o = g_new0(Options, 1);
+ o->layer = -1;
+ o->toggle = FALSE;
+ return o;
+}
+
+static gpointer setup_sendnormal_func(xmlNodePtr node)
+{
+ Options *o = g_new0(Options, 1);
+ o->layer = 0;
+ o->toggle = FALSE;
+ return o;
+}
+