]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/lower.c
add lower and raiselower actions
[chaz/openbox] / openbox / actions / lower.c
diff --git a/openbox/actions/lower.c b/openbox/actions/lower.c
new file mode 100644 (file)
index 0000000..1abf590
--- /dev/null
@@ -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;
+}
This page took 0.025615 seconds and 4 git commands to generate.