]> Dogcows Code - chaz/openbox/commitdiff
fix up the sendtolayer actions
authorDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 16:33:55 +0000 (12:33 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 16:33:55 +0000 (12:33 -0400)
openbox/actions/layer.c

index 4a1cf651901d6023d3e3c745e9409b1f8cbea804..5f0d6ce63aec8c55702e3111b5d1ae79088114c0 100644 (file)
@@ -16,17 +16,18 @@ static gboolean run_func(ObActionsData *data, gpointer options);
 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 @@ 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);
This page took 0.025986 seconds and 4 git commands to generate.