openbox/actions/execute.c \
openbox/actions/exit.c \
openbox/actions/focus.c \
+ openbox/actions/lower.c \
openbox/actions/move.c \
openbox/actions/raise.c \
+ openbox/actions/raiselower.c \
openbox/actions/reconfigure.c \
openbox/actions/restart.c \
openbox/actions/showdesktop.c \
action_focus_order_to_bottom,
setup_client_action
},
- {
- "raiselower",
- action_raiselower,
- setup_client_action
- },
- {
- "lower",
- action_lower,
- setup_client_action
- },
{
"kill",
action_kill,
focus_order_to_bottom(data->client.any.c);
}
-void action_raiselower(union ActionData *data)
-{
- ObClient *c = data->client.any.c;
-
- client_action_start(data);
- stacking_restack_request(c, NULL, Opposite);
- client_action_end(data, config_focus_under_mouse);
-}
-
void action_unshaderaise(union ActionData *data)
{
if (data->client.any.c->shaded)
action_shade(data);
}
-void action_lower(union ActionData *data)
-{
- client_action_start(data);
- stacking_lower(CLIENT_AS_WINDOW(data->client.any.c));
- client_action_end(data, config_focus_under_mouse);
-}
-
void action_kill(union ActionData *data)
{
client_kill(data->client.any.c);
action_move_startup();
action_focus_startup();
action_raise_startup();
+ action_lower_startup();
+ action_raiselower_startup();
}
void action_move_startup();
void action_focus_startup();
void action_raise_startup();
+void action_lower_startup();
+void action_raiselower_startup();
#endif
--- /dev/null
+#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;
+}
--- /dev/null
+#include "openbox/actions.h"
+#include "openbox/stacking.h"
+
+static gboolean run_func(ObActionsData *data, gpointer options);
+
+void action_raiselower_startup()
+{
+ actions_register("RaiseLower",
+ 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_restack_request(data->client, NULL, Opposite);
+ actions_client_move(data, FALSE);
+ }
+
+ return FALSE;
+}