summaryrefslogtreecommitdiff
path: root/openbox/actions/lower.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-22 14:28:21 +0000
committerDana Jansens <danakj@orodu.net>2007-06-22 14:28:21 +0000
commita5c2aadf2778d6ab4105abd457cd2ab21a1172ec (patch)
tree53b7e1731fef9a96d5a3b77e28414f2538f25f38 /openbox/actions/lower.c
parenta07465f376b0a33270532501127ec812efe2c2b2 (diff)
add lower and raiselower actions
Diffstat (limited to 'openbox/actions/lower.c')
-rw-r--r--openbox/actions/lower.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/openbox/actions/lower.c b/openbox/actions/lower.c
new file mode 100644
index 00000000..1abf5903
--- /dev/null
+++ b/openbox/actions/lower.c
@@ -0,0 +1,24 @@
+#include "openbox/actions.h"
+#include "openbox/stacking.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_lower_startup()
+{
+ actions_register("Lower",
+ NULL, NULL,
+ run_func,
+ NULL, NULL);
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func(ObActionsData *data, gpointer options)
+{
+ if (data->client) {
+ actions_client_move(data, TRUE);
+ stacking_lower(CLIENT_AS_WINDOW(data->client));
+ actions_client_move(data, FALSE);
+ }
+
+ return FALSE;
+}