summaryrefslogtreecommitdiff
path: root/openbox/actions/focustobottom.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-14 09:17:39 -0400
committerDana Jansens <danakj@orodu.net>2007-07-14 09:17:39 -0400
commit27a0f0f4c99bab0ceaa496f14c7498b230fcab25 (patch)
tree94c9167c4b0a406b66aeb80d4b3c06dda1dce57e /openbox/actions/focustobottom.c
parentbc2c2bc3f08ba8b40db10761650633d9de7f1753 (diff)
split the focustobottom action back out from unfocus
Diffstat (limited to 'openbox/actions/focustobottom.c')
-rw-r--r--openbox/actions/focustobottom.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/openbox/actions/focustobottom.c b/openbox/actions/focustobottom.c
new file mode 100644
index 00000000..74d48e33
--- /dev/null
+++ b/openbox/actions/focustobottom.c
@@ -0,0 +1,17 @@
+#include "openbox/actions.h"
+#include "openbox/focus.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_focustobottom_startup()
+{
+ actions_register("FocusToBottom", NULL, NULL, run_func, NULL, NULL);
+}
+
+/* Always return FALSE because its not interactive */
+static gboolean run_func(ObActionsData *data, gpointer options)
+{
+ if (data->client)
+ focus_order_to_bottom(data->client);
+ return FALSE;
+}