]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/kill.c
add the kill/close/cyclewindows actions
[chaz/openbox] / openbox / actions / kill.c
diff --git a/openbox/actions/kill.c b/openbox/actions/kill.c
new file mode 100644 (file)
index 0000000..755a4da
--- /dev/null
@@ -0,0 +1,21 @@
+#include "openbox/actions.h"
+#include "openbox/stacking.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_kill_startup()
+{
+    actions_register("Kill",
+                     NULL, NULL,
+                     run_func,
+                     NULL, NULL);
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func(ObActionsData *data, gpointer options)
+{
+    if (data->client)
+        client_kill(data->client);
+
+    return FALSE;
+}
This page took 0.021518 seconds and 4 git commands to generate.