X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Flayer.c;h=92fa4806ebd36990d934117c7711d3beed2ab855;hb=d3a01a40f35cb3ae6c5ad8329291e86e2e599691;hp=4a1cf651901d6023d3e3c745e9409b1f8cbea804;hpb=23c8f0bc5b862ebf5f98e2f26ecf3c15042092d5;p=chaz%2Fopenbox diff --git a/openbox/actions/layer.c b/openbox/actions/layer.c index 4a1cf651..92fa4806 100644 --- a/openbox/actions/layer.c +++ b/openbox/actions/layer.c @@ -13,20 +13,21 @@ static gpointer setup_func_send(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node); static gboolean run_func(ObActionsData *data, gpointer options); -void action_layer_startup() +void action_layer_startup(void) { 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 @@ static gpointer setup_func_bottom(ObParseInst *i, xmlDocPtr doc, { Options *o = g_new0(Options, 1); o->layer = -1; + o->toggle = TRUE; return o; } @@ -45,7 +47,6 @@ static gpointer setup_func_send(ObParseInst *i, xmlDocPtr doc, Options *o; o = g_new0(Options, 1); - o->toggle = TRUE; if ((n = parse_find_node("layer", node))) { gchar *s = parse_string(doc, n);