From 8fd87e58929a02051111a64b51e8596aea5756a8 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Thu, 2 Oct 2008 19:34:44 +0200 Subject: [PATCH] [ALL] Fix typo --- config.c | 8 ++++---- layout.c | 6 ------ wmfs.h | 1 - wmfsrc | 26 +++++++++++++------------- 4 files changed, 17 insertions(+), 24 deletions(-) diff --git a/config.c b/config.c index 678eb0a..d0aaa79 100644 --- a/config.c +++ b/config.c @@ -281,10 +281,10 @@ init_conf(void) cfg_buttons = cfg_getsec(cfg, "buttons"); /* misc */ - conf.raisefocus = cfg_getbool(cfg_misc, "raisefocus"); - conf.raiseswitch = cfg_getbool(cfg_misc, "raiseswitch"); - conf.borderheight = cfg_getint(cfg_misc, "border_height"); - conf.ttbarheight = cfg_getint(cfg_misc, "titlebar_height"); + conf.raisefocus = cfg_getbool(cfg_misc, "raisefocus"); + conf.raiseswitch = cfg_getbool(cfg_misc, "raiseswitch"); + conf.borderheight = cfg_getint(cfg_misc, "border_height"); + conf.ttbarheight = cfg_getint(cfg_misc, "titlebar_height"); conf.bartop = (strcmp(strdup(cfg_getstr(cfg_misc, "bar_position")), "top") == 0) ? True : False; /* font */ diff --git a/layout.c b/layout.c index 12e6948..ab70a3d 100644 --- a/layout.c +++ b/layout.c @@ -37,8 +37,6 @@ freelayout(void) { Client *c; - tags[seltag].layout.func = freelayout; - for(c = clients; c; c = c->next) { if(!ishide(c)) @@ -99,8 +97,6 @@ maxlayout(void) { Client *c; - tags[seltag].layout.func = maxlayout; - for(c = nexttiled(clients); c; c = nexttiled(c->next)) { c->tile = False; @@ -171,8 +167,6 @@ tile(void) nm = tags[seltag].nmaster; mht = mh - ((conf.bartop) ? 0 : barheight); - tags[seltag].layout.func = tile; - /* count all the "can-be-tiled" client */ for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next), ++n); if(n == 0) diff --git a/wmfs.h b/wmfs.h index 4210f02..fa9f0db 100644 --- a/wmfs.h +++ b/wmfs.h @@ -41,7 +41,6 @@ #include #include #include -#include #include #include #include diff --git a/wmfsrc b/wmfsrc index c2569e6..bce2996 100644 --- a/wmfsrc +++ b/wmfsrc @@ -31,21 +31,21 @@ colors layouts { layout { type = "tile" symbol = "TILE" } - layout { type = "max" symbol = "MAX" } + layout { type = "max" symbol = "MAX" } layout { type = "free" symbol = "FREE" } } tags { - tag { name = "one" mwfact = 0.65 nmaster = 2 layout = "tile"} - tag { name = "two" } + tag { name = "one" mwfact = 0.65 nmaster = 2 layout = "tile" } + tag { name = "two" } tag { name = "three" } - tag { name = "four" } - tag { name = "five" } - tag { name = "six" } + tag { name = "four" } + tag { name = "five" } + tag { name = "six" } tag { name = "seven" } tag { name = "eight" } - tag { name = "nine" } + tag { name = "nine" } } buttons @@ -54,20 +54,20 @@ buttons button { text = "[-]" - mouse { button = "Button1" func = "set_mwfact" cmd = "-0.01"} + mouse { button = "Button1" func = "set_mwfact" cmd = "-0.01" } fg_color = "#FFFFFF" bg_color = "#191919" } button { text = "Mwfact" fg_color = "#FFFFFF" bg_color = "#3E3E3E" - mouse { button = "Button4" func = "set_mwfact" cmd = "+0.01"} - mouse { button = "Button5" func = "set_mwfact" cmd = "-0.01"} + mouse { button = "Button4" func = "set_mwfact" cmd = "+0.01" } + mouse { button = "Button5" func = "set_mwfact" cmd = "-0.01" } } button { text = "[+] " - mouse { button = "Button1" func = "set_mwfact" cmd = "+0.01"} + mouse { button = "Button1" func = "set_mwfact" cmd = "+0.01" } fg_color = "#FFFFFF" bg_color = "#191919" } @@ -77,7 +77,7 @@ buttons button { text = "[-]" - mouse { button = "Button1" func = "set_nmaster" cmd = "-1"} + mouse { button = "Button1" func = "set_nmaster" cmd = "-1" } fg_color = "#FFFFFF" bg_color = "#191919" } @@ -85,7 +85,7 @@ buttons button { text = "[+] " - mouse { button = "Button1" func = "set_nmaster" cmd = "+1"} + mouse { button = "Button1" func = "set_nmaster" cmd = "+1" } fg_color = "#FFFFFF" bg_color = "#191919" }