all repos — openbox @ 2c9d6c8cab3956af754f04aeea2f115a2697de3c

openbox fork - make it a bit more like ryudo

fix up the sendtolayer actions
Dana Jansens danakj@orodu.net
commit

2c9d6c8cab3956af754f04aeea2f115a2697de3c

parent

23c8f0bc5b862ebf5f98e2f26ecf3c15042092d5

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M openbox/actions/layer.copenbox/actions/layer.c

@@ -16,17 +16,18 @@

void action_layer_startup() { actions_register("ToggleAlwaysOnTop", setup_func_top, g_free, - run_func_toggle, NULL, NULL); + run_func, NULL, NULL); actions_register("ToggleAlwaysOnBottom", setup_func_bottom, g_free, - run_func_toggle, NULL, NULL); + run_func, NULL, NULL); actions_register("SendToLayer", setup_func_send, g_free, - run_func_send, NULL, NULL); + run_func, NULL, NULL); } static gpointer setup_func_top(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node) { Options *o = g_new0(Options, 1); o->layer = 1; + o->toggle = TRUE; return o; }

@@ -35,6 +36,7 @@ xmlNodePtr node)

{ Options *o = g_new0(Options, 1); o->layer = -1; + o->toggle = TRUE; return o; }

@@ -45,7 +47,6 @@ xmlNodePtr n;

Options *o; o = g_new0(Options, 1); - o->toggle = TRUE; if ((n = parse_find_node("layer", node))) { gchar *s = parse_string(doc, n);